Skip to main content

RDROBUST

The package rdrobust implements estimation, inference, and graphical procedures for Regression Discontinuity (RD) designs using local polynomial methods.

  • rdrobust: point estimation and robust bias-corrected inference.
  • rdbwselect: data-driven bandwidth selection for RD estimation and inference.
  • rdplot: data-driven RD plots based on binned means and local polynomial fits.

See references for methodological and practical details.

Website: https://rdpackages.github.io/.

Source code: https://github.com/rdpackages/rdrobust.

Authors

Sebastian Calonico (scalonico@ucdavis.edu)

Matias D. Cattaneo (matias.d.cattaneo@gmail.com)

Max H. Farrell (mhfarrell@gmail.com)

Ricardo Masini (ricardo.masini@gmail.com)

Rocio Titiunik (rocio.titiunik@gmail.com)

Installation

To install/update use pip:

pip install rdrobust

Usage

from rdrobust import rdrobust, rdbwselect, rdplot, plot_rdrobust, rdrobust_RDsenate

# Load bundled Senate dataset (1390 x 14)
df = rdrobust_RDsenate()

# Sharp RD with HC3 heteroskedasticity-robust variance
r = rdrobust(y=df['vote'], x=df['margin'], vce='hc3')

# Cluster-robust variance (CRV3, Pustejovsky-Tipton 2018)
r = rdrobust(y=df['vote'], x=df['margin'], cluster=df['state'], vce='cr3')

# Bandwidth selection
bw = rdbwselect(y=df['vote'], x=df['margin'], all=True)

# Diagnostic plot of an rdrobust object, with effect panel
fig = plot_rdrobust(r, y=df['vote'], x=df['margin'], show_effect=True)

Dependencies

  • numpy
  • pandas
  • scipy
  • plotnine
  • matplotlib

References

For overviews and introductions, see rdpackages website.

Software and Implementation

Technical and Methodological



Metadata

Release files for rdrobust 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rdrobust 2.1.1
File Size Uploaded
rdrobust-2.1.1.tar.gz 107.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rdrobust 2.1.1
File Interpreter ABI Platform
rdrobust-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 208.2 kB

Release files / rdrobust-2.1.1.tar.gz

Download URL rdrobust-2.1.1.tar.gz
Size 107.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7568a24b3b5bcd9d701bec98f4089ad60b0e25a42e0eec33698b33c24e0139c5
BLAKE2b-256 checksum
How to use checksums
1f71b39afa9f0d26ebef7f6c686033ea178680a9f8f5ed41bb0e4542c116470a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / rdrobust-2.1.1-py3-none-any.whl

Download URL rdrobust-2.1.1-py3-none-any.whl
Size 101.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cb51615eb0557616769831cc4c12351cbf33cef43a18d473170e26fcfb3d659
BLAKE2b-256 checksum
How to use checksums
b005810a1a567388bfd8841a0971f400143c8db4571f0379652803385b9cf35a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page