@misc{rdrobust,
title = {rdrobust},
author = {Calonico and Cattaneo and Farrell and Titiunik},
howpublished = {\url{https://rdpackages.github.io/rdrobust/}},
note = {Software / documentation}
}Treat the running variable as the assignment mechanism and identify the jump at the cutoff with a local-linear fit on each side. MSE-optimal bandwidth + robust bias-corrected intervals; bandwidth and donut sensitivity sweeps are mandatory, not optional.
Input · what goes in
A running variable X with a known cutoff c, and an outcome Y; treatment switches on at X ≥ c.
Show data format & exampleHide example
Format — one row per unit: running variable x, outcome y (cutoff c).
x y
-0.8 2.1
0.3 4.6 # x ≥ c → treated
-0.1 2.9
Pipeline · the recipe ⑂ has parallel branches
↑ Click any step in the diagram to read its logic, code, assumptions & discussion.
Running variable, cutoff, outcome
Data preparation — shapes the raw inputs into what the estimator expects.
Set up X, the threshold c, and Y. Identification rests on continuity at c.
library(rdrobust)
# x = running variable, c = cutoff, y = outcome
- No comments on this step yet — be the first.
Log in to comment on this step.
rdplot — see the jump
A pre-flight check — run this before trusting any estimate downstream.
Binned means on each side reveal whether there's a discontinuity to estimate.
rdplot(y, x, c = 0)
- No comments on this step yet — be the first.
Log in to comment on this step.
Local-linear RD with bias correction
The core estimate — where the causal quantity itself is computed.
Fit local polynomials on each side at an MSE-optimal bandwidth; robust CIs.
rdrobust(y, x, c = 0)
- No comments on this step yet — be the first.
Log in to comment on this step.
Bandwidth & donut sensitivity
A robustness check — does the headline result survive a different lens?
Re-estimate across bandwidths and dropping points at the cutoff.
rdrobust(y, x, c = 0, h = c(h1, h2))
- No comments on this step yet — be the first.
Log in to comment on this step.
Output · what you get
⚠️ Unofficial community showcase of rdrobust. Not affiliated with the authors; all credit to them.
Identify the effect at a cutoff: a local-polynomial RD with an MSE-optimal bandwidth and robust, bias-corrected confidence intervals.
Discussion (0)
Log in to join the discussion.