Manipulation testing based on density discontinuity.
Project description
RDDENSITY
The rddensity package provides tools for manipulation testing around a cutoff using local polynomial density estimators, bandwidth selection, and density plotting.
rddensity: implements density discontinuity testing.rdbwdensity: implements bandwidth selectors for manipulation testing.rdplotdensity: implements density plots around the cutoff.
See Cattaneo, Jansson and Ma (2018, 2020, 2022, 2024) for references.
Website: https://rdpackages.github.io/.
Source code: https://github.com/rdpackages/rddensity.
Authors
Matias D. Cattaneo, maintainer (matias.d.cattaneo@gmail.com)
Michael Jansson (michael.jansson.berkeley@gmail.com)
Xinwei Ma (xinweima.pku@gmail.com)
Ricardo Masini, Python contributor (ricardo.masini@gmail.com)
Installation
To install/update use pip:
pip install rddensity
Usage
from rddensity import rddensity, rdbwdensity, rdplotdensity
- Replication: rddensity illustration, rdplotdensity illustration, senate data.
Dependencies
- numpy
- pandas
- scipy
- sympy
- plotnine
- lpdensity
References
For overviews and introductions, see the rdpackages website.
Software and Implementation
-
Cattaneo, Jansson and Ma (2018): Manipulation Testing based on Density Discontinuity.
Stata Journal 18(1): 234-261. -
Cattaneo, Jansson and Ma (2022): lpdensity: Local Polynomial Density Estimation and Inference.
Journal of Statistical Software 101(2): 1-25.
Technical and Methodological
-
Cattaneo, Jansson and Ma (2020): Simple Local Polynomial Density Estimators.
Journal of the American Statistical Association 115(531): 1449-1455.
Supplemental appendix. -
Cattaneo, Jansson and Ma (2024): Local Regression Distribution Estimators.
Journal of Econometrics 240(2): 105074.
Supplemental appendix.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rddensity-3.0.tar.gz.
File metadata
- Download URL: rddensity-3.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c48e490e62d42347e0fd5fdddb3c33fe812e07c9bdba2e71d214eb92921dbf7
|
|
| MD5 |
b862d68e7dfbb3f3114e8ecdfc6bca1c
|
|
| BLAKE2b-256 |
82bc4481255a9c40ee800b81f96cafd0d423ced295fcee852855a79d9610e775
|
Provenance
The following attestation bundles were made for rddensity-3.0.tar.gz:
Publisher:
publish-python.yml on rdpackages/rddensity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rddensity-3.0.tar.gz -
Subject digest:
8c48e490e62d42347e0fd5fdddb3c33fe812e07c9bdba2e71d214eb92921dbf7 - Sigstore transparency entry: 1593848499
- Sigstore integration time:
-
Permalink:
rdpackages/rddensity@8cb673bd709e95b8e22bc34047e62f5eb70274ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rdpackages
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@8cb673bd709e95b8e22bc34047e62f5eb70274ed -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file rddensity-3.0-py3-none-any.whl.
File metadata
- Download URL: rddensity-3.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9175430dd26956a94ac2811f8ca0963a40939cce2aaf8aa3f9929f05bae26840
|
|
| MD5 |
6d753a758af22462a06cdb740708ca38
|
|
| BLAKE2b-256 |
b299c13f08e60287b852dba07952567a92d7efbda9f6aa8006581bb7371e8ee1
|
Provenance
The following attestation bundles were made for rddensity-3.0-py3-none-any.whl:
Publisher:
publish-python.yml on rdpackages/rddensity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rddensity-3.0-py3-none-any.whl -
Subject digest:
9175430dd26956a94ac2811f8ca0963a40939cce2aaf8aa3f9929f05bae26840 - Sigstore transparency entry: 1593848591
- Sigstore integration time:
-
Permalink:
rdpackages/rddensity@8cb673bd709e95b8e22bc34047e62f5eb70274ed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rdpackages
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@8cb673bd709e95b8e22bc34047e62f5eb70274ed -
Trigger Event:
workflow_dispatch
-
Statement type: