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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rddensity-2.4.6-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rddensity-2.4.6.tar.gz
Algorithm Hash digest
SHA256 7b8b8f5d8b01abeddcbea7819a802dc5038ff2ce44312991bc42824ba836f3a0
MD5 504def09d1e22618a749664c538c6d6b
BLAKE2b-256 424b1854e9cb853abecece54dc642e3783a22c4d86b9d515c0b2322d8ec61e4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rddensity-2.4.6-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for rddensity-2.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6aa1e79f4321269cfe4be6ea8d218c51074b4606cd146631178cb7742070b7
MD5 0ab71513d181e846c62ae49db8357b0b
BLAKE2b-256 214e5732c29e1068f2a07b23ec9eb8342b7b53bd5c35773e10b9854772ed1222

See more details on using hashes here.

Supported by

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