$npx skillfedfor your agent

rdrobust

Implements local polynomial Regression Discontinuity (RD) point estimators with robust bias-corrected confidence intervals and inference procedures.

With conditionsPyPI MathematicsReleased May 202689.8K downloads / moGPL-3.0-onlyPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — rdrobust-2.0.0-py3-none-any.whl
v2.0.0 · released 2026-05-15 · Python >=3.9 · 5 runtime deps: numpy, pandas, scipy, plotnine, matplotlib

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

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
Same gist for agents: .md · .json

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.

With conditions

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

LicenseGPL-3.0-only copyleft
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
numpypandasscipyplotninematplotlib
MaintenanceActively maintained 91 days since the last release
Last repo commit
First released
Downloads89,822 / month, #13,632 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
regression discontinuity estimationRD design inferencelocal polynomial regressioncausal inference discontinuitybias-corrected confidence intervalsbandwidth selection RDregression discontinuity plotseconometric discontinuity analysis
Topics
causal-inferenceeconometricsquasi-experimental-design

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 Worth it
PyPI · Python Modules · released Dec 2025

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.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

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.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

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.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

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.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also ropwr · econml · dowhy · pydoe · pyfixest · linearmodels · pyDOE3 · quantile-forest · mgwr · spreg

Further reading