https://github.com/rdpackages/rddensity
Manipulation testing using local polynomial density methods.
https://github.com/rdpackages/rddensity
causal-inference program-evaluation regression-discontinuity-designs treatment-effects
Last synced: about 2 months ago
JSON representation
Manipulation testing using local polynomial density methods.
- Host: GitHub
- URL: https://github.com/rdpackages/rddensity
- Owner: rdpackages
- License: other
- Created: 2020-08-07T12:36:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-23T05:27:34.000Z (about 1 year ago)
- Last Synced: 2025-10-27T14:55:24.296Z (4 months ago)
- Topics: causal-inference, program-evaluation, regression-discontinuity-designs, treatment-effects
- Language: Stata
- Homepage: https://rdpackages.github.io/rddensity/
- Size: 4.94 MB
- Stars: 13
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RDDENSITY
The [`rddensity`](https://rdpackages.github.io/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 in part by the National Science Foundation through grants [SES-1357561](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1357561), [SES-1459931](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1459931), [SES-1459967](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1459967), [SES-1947662](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1947662), [SES-1947805](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1947805), and [SES-2019432](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2019432).
## Website
https://rdpackages.github.io/rddensity
## Queries and Requests
Please email: [rdpackages@googlegroups.com](mailto:rdpackages@googlegroups.com)
## Major Upgrades
This package was first released in Spring 2017, and had one major upgrade in Summer 2020.
- _Summer 2020 new features include_: (i) speed improvements; (ii) improved integration with [`lpdensity`](https://nppackages.github.io/lpdensity/); (iii) mass points in running variable adjustments; (iv) bandwidth selection adjustments for too few mass points in and/or overshooting of the support of the running variable; (v) density discontinuity plots with histogram and/or confidence bands; and (vi) binomial testing near cutoff as complementary discontinuity testing following results in [`rdlocrand`](https://rdpackages.github.io/rdlocrand/) methods (see references there for details).
## Python Implementation
To install/update in Python type:
```
pip install rddensity
```
- Help: [PyPI](https://pypi.org/project/rddensity/2.2.0/), [Documentation](Python/rddensity/docs/build/latex/rddensity.pdf)
- Replication: [Python script](Python/rddensity_illustration.py)
## R Implementation
To install/update in R type:
```
install.packages('rddensity')
```
- Help: [R Manual](https://cran.r-project.org/web/packages/rddensity/rddensity.pdf), [CRAN repository](https://cran.r-project.org/package=rddensity).
- Replication: [R-script](R/rddensity_illustration.R), [rdplot illustration](R/rddensity_plot_illustration.R), [senate data](R/rddensity_senate.csv).
## Stata Implementation
To install/update in Stata type:
```
net install rddensity, from(https://raw.githubusercontent.com/rdpackages/rddensity/master/stata) replace
```
- Help: [rddensity](stata/rddensity.pdf), [rdbwdensity](stata/rdbwdensity.pdf).
- Replication: [do-file](stata/rddensity_illustration.do), [do-file plot](stata/rddensity_plot_illustration.do), [data-senate](stata/rddensity_senate.dta).
## References
For overviews and introductions, see [rdpackages website](https://rdpackages.github.io).
### Software and Implementation
- Cattaneo, Jansson and Ma (2018): [Manipulation Testing based on Density Discontinuity](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2018_Stata.pdf).
_Stata Journal_ 18(1): 234-261.
- Cattaneo, Jansson and Ma (2022): [lpdensity: Local Polynomial Density Estimation and Inference](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JSS.pdf).
_Journal of Statistical Software_ 101(2): 1-25.
### Technical and Methodological
- Cattaneo, Jansson and Ma (2020): [Simple Local Polynomial Density Estimators](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA.pdf).
_Journal of the American Statistical Association_ 115(531): 1449-1455.
[Supplemental appendix](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2020_JASA--Supplement.pdf).
- Cattaneo, Jansson and Ma (2022): [Local Regression Distribution Estimators](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JoE.pdf).
_Journal of Econometrics_, forthcoming.
[Supplemental appendix](https://rdpackages.github.io/references/Cattaneo-Jansson-Ma_2022_JoE--Supplement.pdf).