Skip to content
StatsOtter A workspace for causal thinking
Method library WORKFLOW / 029
Research workflow/4 steps

Sharp regression discontinuity with robust bias correction (rdrobust)

Source rdrobust — Calonico, Cattaneo, Farrell & Titiunik
01
The method workspace

Follow the analysis.

Select a node to explore the method

Method mapInput → 4 steps → output
START WITHInput data
ARRIVE ATResults
Read step 01
Inside the methodReasoning, equations & implementation
Step 1 of 4
01
Data prep

Running variable, cutoff, outcome

Data preparation — shapes the raw inputs into what the estimator expects.

What happens here

Set up X, the threshold c, and Y. Identification rests on continuity at c.

Formula
\tau_{\mathrm{RD}}=\lim_{x\downarrow c}\mathbb{E}[Y\mid X=x]-\lim_{x\uparrow c}\mathbb{E}[Y\mid X=x]
Reads fromNot specified Feeds intoNot specified
Key code
library(rdrobust)
# x = running variable, c = cutoff, y = outcome

Reference / docs ↗

Discussion on this step (0)
StatsOtterDiscussion starter · Editorial note

Before using this step, make its assumptions and its output explicit. A useful peer note explains what you would check, what could go wrong, or what would change your interpretation.

Questions to explore
  1. Which assumption matters most here, and what evidence could challenge it?
  2. What would you check before passing this output to the next step?

Peer discussion

  • Bring your experience, a question, or a different perspective.
02
Data contract

Inputs & data

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
03
Read the evidence

Results & interpretation

Workflow discussion 0
Context & interpretation

⚠️ 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.

Peer notes

Discuss the workflow (0)

  • No comments yet — start the conversation.
IN THE MARGINS

Peer discussion