Skip to main content

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:

  • rdrandinf to perform hypothesis testing using randomization inference.
  • rdwinselect to select a window around the cutoff in which randomization is likely to hold.
  • rdsensitivity to assess the sensitivity of the results to different window lengths and null hypotheses.
  • rdrbounds to 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.



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

rdlocrand-2.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

rdlocrand-2.0-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

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

Hashes for rdlocrand-2.0.tar.gz
Algorithm Hash digest
SHA256 707dfa3facddd26ca4b6f2ba6cd86ece58dfeb7b4f77f517a9deafbd149a0de3
MD5 adc409650babc64f086dbdcd18e1f276
BLAKE2b-256 8b542f63a3ad52922f492e40e9ca3bfac1ace0836212e6548d44a68cc12923ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdlocrand-2.0.tar.gz:

Publisher: publish-python.yml on rdpackages/rdlocrand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rdlocrand-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be3e7849f3acc1f0795a499770438e4e1755d564d8b4e01504254c13035c5a14
MD5 4e86cd9e50806b94882235159bdd71d4
BLAKE2b-256 cb62d477eb83717670904ccdeffec4b0cfa5de0258864fd28974838a71fc4ad6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdlocrand-2.0-py3-none-any.whl:

Publisher: publish-python.yml on rdpackages/rdlocrand

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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