Local Randomization Methods for RD Designs
Project description
Local Randomization Methods for RD Designs
Description
The rdlocrand package provides tools to analyze RD designs under local randomization:
rdrandinfto perform hypothesis testing using randomization inference.rdwinselectto select a window around the cutoff in which randomization is likely to hold.rdsensitivityto assess the sensitivity of the results to different window lengths and null hypotheses.rdrboundsto construct Rosenbaum bounds for sensitivity to unobserved confounders.
For more details, and related R, Python, and Stata packages useful for the analysis of RD designs, visit https://rdpackages.github.io/.
Source code is available at https://github.com/rdpackages/rdlocrand.
Authors
Matias D. Cattaneo, Princeton University. Email: matias.d.cattaneo@gmail.com
Ricardo Masini, UC Davis. Email: ricardo.masini@gmail.com
Rocio Titiunik, Princeton University. Email: rocio.titiunik@gmail.com
Gonzalo Vazquez-Bare, UC Santa Barbara. Email: gvazquezbare@gmail.com
Installation
To install or update from PyPI:
pip install rdlocrand
Usage
from rdlocrand import rdrandinf, rdwinselect, rdsensitivity, rdrbounds
out = rdrandinf(Y, R, wl=-0.75, wr=0.75, quietly=True)
print(out["p.value"])
Package functions return dictionaries whose keys match the names documented in
the function docstrings, such as p.value, obs.stat, results, and
p.values.
References
For overviews and introductions, see rdpackages website.
-
Cattaneo, M.D., B. Frandsen, and R. Titiunik. (2015). Randomization Inference in the Regression Discontinuity Design: An Application to Party Advantages in the U.S. Senate. Journal of Causal Inference 3(1): 1-24.
-
Cattaneo, M.D., R. Titiunik, and G. Vazquez-Bare. (2016). Inference in Regression Discontinuity Designs under Local Randomization. Stata Journal 16(2): 331-367.
-
Cattaneo, M.D., R. Titiunik, and G. Vazquez-Bare. (2017). Comparing Inference Approaches for RD Designs: A Reexamination of the Effect of Head Start on Child Mortality. Journal of Policy Analysis and Management 36(3): 643-681.
-
Rosenbaum, P. (2002). Observational Studies. Springer.
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
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 rdlocrand-2.0.tar.gz.
File metadata
- Download URL: rdlocrand-2.0.tar.gz
- Upload date:
- Size: 25.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 |
707dfa3facddd26ca4b6f2ba6cd86ece58dfeb7b4f77f517a9deafbd149a0de3
|
|
| MD5 |
adc409650babc64f086dbdcd18e1f276
|
|
| BLAKE2b-256 |
8b542f63a3ad52922f492e40e9ca3bfac1ace0836212e6548d44a68cc12923ed
|
Provenance
The following attestation bundles were made for rdlocrand-2.0.tar.gz:
Publisher:
publish-python.yml on rdpackages/rdlocrand
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdlocrand-2.0.tar.gz -
Subject digest:
707dfa3facddd26ca4b6f2ba6cd86ece58dfeb7b4f77f517a9deafbd149a0de3 - Sigstore transparency entry: 1534881921
- Sigstore integration time:
-
Permalink:
rdpackages/rdlocrand@b0fffd9676dd9970125703c98b546e1c5bceb81e -
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@b0fffd9676dd9970125703c98b546e1c5bceb81e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file rdlocrand-2.0-py3-none-any.whl.
File metadata
- Download URL: rdlocrand-2.0-py3-none-any.whl
- Upload date:
- Size: 30.3 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 |
be3e7849f3acc1f0795a499770438e4e1755d564d8b4e01504254c13035c5a14
|
|
| MD5 |
4e86cd9e50806b94882235159bdd71d4
|
|
| BLAKE2b-256 |
cb62d477eb83717670904ccdeffec4b0cfa5de0258864fd28974838a71fc4ad6
|
Provenance
The following attestation bundles were made for rdlocrand-2.0-py3-none-any.whl:
Publisher:
publish-python.yml on rdpackages/rdlocrand
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdlocrand-2.0-py3-none-any.whl -
Subject digest:
be3e7849f3acc1f0795a499770438e4e1755d564d8b4e01504254c13035c5a14 - Sigstore transparency entry: 1534882216
- Sigstore integration time:
-
Permalink:
rdpackages/rdlocrand@b0fffd9676dd9970125703c98b546e1c5bceb81e -
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@b0fffd9676dd9970125703c98b546e1c5bceb81e -
Trigger Event:
workflow_dispatch
-
Statement type: