The rddensity package provides Stata and R implementations of manipulation tests employing local polynomial density estimation methods. This method is useful for falsification of Regression Discontinuity Designs, as well as for testing for self-selection or sorting in other contexts. This implementation provides hypothesis tests and bandwidth selectors for manipulation testing. This work was supported by the National Science Foundation through grants SES-1357561, SES-1459931 and SES-1459967.

For technical, methodological and implementation details see:
Implementation in Stata
  • To install/update in Stata type:
net install rddensity, from(https://sites.google.com/site/rdpackages/rddensity/stata) replace
Implementation in R:
  • To install/update in R type:
install.packages('rddensity')
Last update: July 14, 2019.