Manipulation Testing Based on Density Discontinuity

Matias D. Cattaneo, Michael Jansson, Xinwei Ma

Research output: Contribution to journal/Conference contribution in journal/Contribution to newspaperJournal articleResearchpeer-review

357 Downloads (Pure)


In this article, we introduce two community-contributed commands, rddensity and rdbwdensity, that implement automatic manipulation tests based on density discontinuity and are constructed using the results for local-polynomial density estimators in Cattaneo, Jansson, and Ma (2017b, Simple local polynomial density estimators, Working paper, University of Michigan). These new tests exhibit better size properties (and more power under additional assumptions) than other conventional approaches currently available in the literature. The first command, rddensity, implements manipulation tests based on a novel local-polynomial density estimation technique that avoids prebinning of the data (improving size properties) and allows for restrictions on other features of the model (improving power properties). The second command, rdbwdensity, implements several bandwidth selectors specifically tailored for the manipulation tests discussed herein. We also provide a companion R package with the same syntax and capabilities as rddensity and rdbwdensity.
Original languageEnglish
JournalThe Stata Journal
Pages (from-to)234-261
Number of pages28
Publication statusPublished - 2018

Cite this