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.5.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

rddensity-2.4.5-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file rddensity-2.4.5.tar.gz.

File metadata

  • Download URL: rddensity-2.4.5.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rddensity-2.4.5.tar.gz
Algorithm Hash digest
SHA256 8facbaed7637bcad987df21a23a2b15ea4c517663616cb94f21f5d2ea4a499ad
MD5 8d42aad024cb96f39017b3f38c3c0df6
BLAKE2b-256 af57b00a6d6302bd3a15471392ef871429fbcc2b233457f6b91cac8623034eaa

See more details on using hashes here.

File details

Details for the file rddensity-2.4.5-py3-none-any.whl.

File metadata

  • Download URL: rddensity-2.4.5-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for rddensity-2.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0d0ff980dc2406cc4bd0d2a689099d296156cfeccc1c802aa3ada1fbc0416420
MD5 98ecf4d63c51c74271fe5f2c4789da31
BLAKE2b-256 d723566c0aae3ff8730aeb2153ec9e0c44566176639712661d0860483e173742

See more details on using hashes here.

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