rdrobust
Implements local polynomial Regression Discontinuity (RD) point estimators with robust bias-corrected confidence intervals and inference procedures.
Decision gist · record as of 2026-08-14
Yes, if you work with regression discontinuity designs in econometrics or causal inference. The package is actively maintained, has no known vulnerabilities, installs with low friction, and implements state-of-the-art bias-corrected methods backed by peer-reviewed research. The GPL-3.0-only license is a constraint only if you need to incorporate it into proprietary software.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.9
- Low friction installation with five common scientific dependencies (numpy, pandas, scipy, plotnine, matplotlib).
- Actively maintained with recent releases; last commit 2026-08-14.
License · maintenance · safety
GPL-3.0-only (copyleft) — GPL-3.0-only copyleft license requires any derivative work or distribution to also be GPL-3.0-only; acceptable for research and open-source projects but incompatible with proprietary software.
last release 2026-05-15 (91 days) · last repo commit 2026-08-14 · 97 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 89,822 downloads/mo, #13,632 on PyPI
Alternatives
Verify before relying
pip install rdrobust
from rdrobust import rdrobust, rdrobust_RDsenate
df = rdrobust_RDsenate()
r = rdrobust(y=df['vote'], x=df['margin'], vce='hc3')- Whether cluster-robust variance (CRV3) implementation matches Pustejovsky-Tipton 2018 exactly as claimed
- Performance characteristics with large datasets (memory footprint, computation time)
- Compatibility with pandas/numpy versions beyond the minimum supported
What it is and what it does
rdrobust is a Python implementation of regression discontinuity design methods for causal inference, translating the methodological framework from econometrics into a usable statistical package. It provides three main functions: rdrobust for point estimation and hypothesis testing with robust bias-corrected inference, rdbwselect for data-driven bandwidth selection, and rdplot for diagnostic visualization. The package depends on numpy, pandas, scipy for numerical computation, and plotnine and matplotlib for graphical output.
The package targets applied researchers and econometricians who work with quasi-experimental designs where a treatment assignment changes sharply at a threshold. It handles heteroskedasticity-robust and cluster-robust variance estimation, supports covariate adjustment, and implements the bias-correction and coverage-error optimization methods described in the underlying academic literature. Installation is straightforward, and the package includes a bundled Senate dataset for quick experimentation.
Use it for
- Estimate causal effects in policy evaluations where treatment is assigned based on a threshold (e.g., eligibility cutoffs)
- Conduct robust inference on discontinuities in outcome variables at known policy discontinuities
- Select optimal bandwidth for RD estimation automatically using data-driven procedures
- Generate diagnostic plots of RD relationships with binned means and local polynomial fits
- Perform cluster-robust inference when observations are grouped (e.g., by state or region)
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with regression discontinuity designs in econometrics or causal inference.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and implements state-of-the-art bias-corrected methods backed by peer-reviewed research. The GPL-3.0-only license is a constraint only if you need to incorporate it into proprietary software.
Install
rdrobust on PyPI
Before you install
Low friction installation with five common scientific dependencies (numpy, pandas, scipy, plotnine, matplotlib). Actively maintained with recent releases; last commit 2026-08-14.
Requires Python >= 3.9
License in practice
GPL-3.0-only copyleft license requires any derivative work or distribution to also be GPL-3.0-only; acceptable for research and open-source projects but incompatible with proprietary software.
Quickstart
pip install rdrobust
from rdrobust import rdrobust, rdrobust_RDsenate
df = rdrobust_RDsenate()
r = rdrobust(y=df['vote'], x=df['margin'], vce='hc3')
Verify before relying
- Whether cluster-robust variance (CRV3) implementation matches Pustejovsky-Tipton 2018 exactly as claimed
- Performance characteristics with large datasets (memory footprint, computation time)
- Compatibility with pandas/numpy versions beyond the minimum supported
Package facts
| License | GPL-3.0-only copyleft |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesnumpypandasscipyplotninematplotlib |
| Maintenance | Actively maintained 91 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,822 / month, #13,632 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Operating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: rdrobust-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “regression discontinuity estimation”
- rdrobustImplements regression discontinuity (RD) design estimation,…
- quantile-forestQuantile regression forests for estimating conditional quantiles and…
- linearmodelsProvides panel regression, instrumental variable estimators, system…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also ropwr · econml · dowhy · pydoe · pyfixest · linearmodels · pyDOE3 · quantile-forest · mgwr · spreg