Skip to main content

Mainpulation testing based on Density Discontinuity

Project description

RDDENSITY

Density discontinuity testing (a.k.a. manipulation testing) is commonly employed in regression discontinuity designs and other program evaluation settings to detect perfect self-selection (manipulation) around a cutoff where treatment/policy assignment changes. This package implements manipulation testing procedures using the local polynomial density estimators: rddensity() to construct test statistics and p-values given a prespecified cutoff, rdbwdensity() to perform data-driven bandwidth selection, and rdplotdensity() to construct density plots.

This work was supported in part by the National Science Foundation through grants SES-1357561, SES-1459931, SES-1459967, SES-1947662, SES-1947805, and SES-2019432.

Authors

Matias D. Cattaneo (cattaneo@princeton.edu)

Xinwei Ma (x1ma@ucsd.edu)

Michael Jansson (mjansson@econ.berkeley.edu)

Rajita Chandak (maintainer) (rchandak@princeton.edu)

Website

https://rdpackages.github.io/rddensity

Queries and Requests

Please email: rdpackages@googlegroups.com

Implementation

To install/update in Python type:

pip install rddensity

Usage

from lpdensity import lpdensity, lpbwdensity

Dependencies

  • numpy
  • pandas
  • math
  • scipy
  • plotnine

References

For overviews and introductions, see rdpackages website.

Software and Implementation

Technical and Methodological



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rddensity-2.4.1.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

rddensity-2.4.1-py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page