← Methods The regression discontinuity recipe →

Regression discontinuity

260
packages in the design · 259 papers
190
of them have a model that shows the design itself — the models read below
174
run a dedicated regression discontinuity estimator (8,316 estimations)
How the design is counted — the same count on the recipe, outcomes and methods pages
  • The universe is every replication package our extractors have read (code_model_design) that is linked to a live paper by a confirmed link; the field is the linked paper's.
  • A package is in a design when (a) our extractor found the design's identification pattern on a line of code it runs (not a path, a folder macro, an export or an install line), or (b) it runs a model of the design's own estimator family. An ivreg2 / ivreghdfe call with no (endog = z) group counts for neither: it is OLS with robust or HAC errors, not IV.
  • Panel fixed effects is the rest: a fixed-effects estimation and none of the other designs. A package can be in several designs (not panel FE).
  • A model is an estimation OF the design only when the model itself carries the design's signature; the recipe's estimation choices, the outcomes, the instruments and every example are read from those models.
  • This design's signature in a model: an RD estimator (rdrobust, rdrandinf, ...), or a regression restricted to a bandwidth around a cutoff (abs(x) < h, inrange(x, -h, h)) with a side indicator or interaction.
  • 251 packages declare the design in code; 174 are in it by their estimator (a package can be both).

Adoption over time — the dedicated estimator

2016: 1 of 105 packages (1.0%) 2017: 1 of 121 packages (0.8%) 2018: 3 of 151 packages (2.0%) 2019: 5 of 253 packages (2.0%) 2020: 4 of 246 packages (1.6%) 2020 2021: 8 of 392 packages (2.0%) 2022: 16 of 775 packages (2.1%) 2023: 31 of 909 packages (3.4%) 2024: 32 of 1,136 packages (2.8%) 2025: 34 of 1,322 packages (2.6%) 2025 2026: 39 of 1,459 packages (2.7%)

Share of each publication year's packages with parsed models that run this estimator at least once (hover for counts). Grey years have fewer than 10 packages and are not a trend; package coverage is thin before ~2010, when journal data policies began.

Validation practice

Of the 260 packages in the design, how many run each standard check (read from the code; the same checks and numbers as the recipe). A check run under a macro or in a file we could not read is missed, so these are lower bounds. Greyed: fewer than 10 packages.

manipulation / density test (rddensity, McCrary)
47% · 122
data-driven bandwidth (rdrobust default, bwselect(), rdbwselect)
76% · 198
a numeric bandwidth h(#) set in some rdrobust call
23% · 60
triangular kernel stated
27% · 69
RD plot (rdplot)
43% · 112
multiple-testing correction (FDR, Romano-Wolf, ...)
7% · 18

What it is used to study

The dependent variables of this design's estimations, read from the model roles we read from the code. Of the 260 packages in the design, 190 have a model that shows the design itself, and 175 of those have a readable outcome (9,070 models; for 91 packages some outcome is read only through a loop's expansion). Shares are of those 175 packages, one count per package; greyed rows rest on fewer than 10. An outcome that is a taxonomy measure's variable in the same package is shown as the measure; other names are grouped by what they name. Compare every design →

How this is counted
  • The unit is the package: a package counts once for an outcome, measure or instrument type however many of its models carry it; the model count is shown second.
  • A design's packages are the ONE design membership every page shows (identification fact on a line of code, or the design's own estimator). Its models are the ones that carry the design's signature in the model itself — a DiD estimator or a treatment × post term, event-time dummies or an abnormal-return outcome, an excluded instrument, an RD estimator or a bandwidth around a cutoff, a matching estimator or matched weights. A package with none of those models is counted in the design but has no outcome here.
  • Roles are read from each model's literal row. Only where a literal role still holds a macro (`y', $dep) are the loop-expanded rows written on the same line read for that role; an expanded row whose literal row is resolved adds nothing, and an unresolved role with no expansion is dropped.
  • An outcome is a taxonomy measure when the dependent variable is that measure's variable in the same package; otherwise it is grouped by its name (a word list, field-aware for short names like car, q, ret); otherwise it is shown as the bare variable.
  • Instruments are the EXCLUDED ones: a term also among the model's regressors is an included control. Types are read from the name (and L. / lag for lagged values). Where the name says nothing (`z`, `shock`, `iv1`), the instrument is traced to the statement in the package that builds it, up to three statements back, and typed by that statement's shape — (total − own)/(n − 1) a leave-out mean, L.x or x[_n-1] a lag, predict after a model a predicted value, a by-group sum of share × shock a shift-share, geodist a distance — or by the name of the one variable it copies or transforms. Products, thresholds and aggregates of other variables are not read, and an instrument nothing reliable types stays untyped. Each such example shows the statement, linked to its line.

Finance — 18 of 28 packages have a readable outcome

Economics — 153 of 227 packages have a readable outcome

Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)

Commonest outcome names no group reads (all fields, packages): altitude (2), area (2), business (2), carsphh_resid (2), central (2), d_resid (2), dem_resid (2), frelaitc (2), ge_2016_resid (2), ge_ab_2016_resid (2), ge_ab_resid (2), ge_ap_2016_resid (2).

Commands (of the 174 packages running the dedicated estimator)

  • rdrobust174

Inference (of the 174 packages running the dedicated estimator)

  • cluster97
  • default97
  • robust10

Clustering variables (of the 174 packages running the dedicated estimator)

  • id6
  • 33
  • ac3
  • cluster_id3
  • county3
  • cpf2
  • district2
  • m2

Absorbed fixed effects (of the 174 packages running the dedicated estimator)

  • none recorded

Foundational works

What the papers whose code runs this estimator cite most (share of those papers citing each).

Recent examples, straight from the code

One model per package, from the most recent papers — each one shows the design itself (why is given beside it).

Marginal Returns to Public Universities Quarterly Journal of Economics 2026 · results_robustness.do:24 · pkg 7567 RD estimator
rdrobust `Y' run, c(0) fuzzy(d1) vce(cluster ssnrep) all
Political Foundations of Racial Violence in the Post-Reconstruction South Quarterly Journal of Economics 2026 · 1a_main.do:744 · pkg 7586 RD estimator
qui rdrobust black_lynch_after demloss if South==1, c(0) p(1) all covs($year_fe $state_fe $xy_ctrls) vce(cluster countyunit)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
qui rdrobust black_lynch_after demloss if South==1, c(0) p(1) all covs(year1 year2 year3 year4 year5 year6 statefip1 statefip2 statefip3 statefip4 statefip5 statefip6 statefip7 statefip8 statefip9 statefip10 statefip11 x y xx yy xy) vce(cluster countyunit)
Revolutionary Transition: Inheritance Change and Fertility Decline Journal of Political Economy 2026 · 2_scripts_2_2_analyses_02_results-paper-geni.do:101 · pkg 7834 RD estimator
rdrobust nfert dista, c(0) p(1) kernel(triangular) h(`d') all masspoints(adjust) covs(byear_* seg_*) vce(cluster ninsee_com)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
rdrobust nfert dista, c(0) p(1) kernel(triangular) h(16.91) all masspoints(adjust) covs(byear_* seg_*) vce(cluster ninsee_com)
Financial Aid and Upward Mobility: Evidence from Colombia’s Ser Pilo Paga Juliana London˜o-Ve´ lez Journal of Political Economy 2026 · Code_Output_3_Results_years_PILA.do:43 · pkg 7848 RD estimator
rdrobust `o' running_`r' if ${cond_`r'}, masspoints(off)
Polling Place Location and the Costs of Voting American Economic Journal: Economic Policy 2026 · RD_10_cities.do:24 · pkg 11713 RD estimator
rdrobust `y'_resid runvar if RD_sample==1 & `i'==1, c(0) p(1) fuzzy(r) vce(cluster split_seg_id)  h(`h')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
rdrobust `y'_resid runvar if RD_sample==1 & `i'==1, c(0) p(1) fuzzy(r) vce(cluster split_seg_id) h(`e(h_mserd)')
Reporting Regulation and Private Firms' Bank Credit Journal of Accounting Research 2026 · 60 Internal Validity and Robustness.do:781 · pkg 12762 RD estimator
rdrobust wexposure_cfab_end_assets LDT2, c(0) fuzzy(mixed) h(0.105) kernel(uniform) covs(LDT1 threshold1 LDT1_threshold1 LDT3 threshold3 LDT3_threshold3 wLIQUIDITY wCASHSTI wEQTOTA wINTAN wINVT wEBITDA_MARGIN wOSCORE log_age log_ARcycle log_APcycle) vce(cluster id)
Opioid Crisis and Real Estate Prices Journal of Financial and Quantitative Analysis 2026 · [R] StateLawRD.do:78 · pkg 14125 RD estimator
rdrobust `y`Y'' borderdis, covs(`x`X'') vce(hc0) p(`p`P'') `h`H''
Women in Politics: The Effect on Board Diversity Journal of Financial and Quantitative Analysis 2026 · Tables_4to10.do:15 · pkg 14144 RD estimator
rdrobust changefdir winmargin2, covs(lagfdir logassets roa io logpi_percapita logpopulation pctwomen femalemaleincomeratio female_laborforce male_laborforce female_unemploymentrate male_unemploymentrate y1-y7 ind1-ind61) vce(cluster stateid) h(1) all
Racial self-classification, group consciousness, and public employment representation Journal of Development Economics 2026 · extras.do:80 · pkg 14471 RD estimator
rdrobust porc_raca_bw margin if abs(margin) > 0.005, kernel(uni)
Cooperation between national armies: Evidence from the Sahel borders Journal of Development Economics 2026 · RDDplots.do:97 · pkg 14472 RD estimator
rdrobust $y $x if $G5C  & $x < ${maxb}  & period =="f2017to2020", c($c) bwselect(msetwo) all  covs(COUNTRY_* border_ctrl_distance_*)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
rdrobust `dim'`outcome'_geo`geo' borderMLIBFNER if inlist(COUNTRY,"Mali","Burkina Faso", "Niger") & borderMLIBFNER < 250 & period =="f2017to2020", c(50) bwselect(msetwo) all covs(COUNTRY_* border_ctrl_distance_*)
The distribution game: Evidence from 200,000 campaign donors Journal of Development Economics 2026 · 0_3_council_first_stage.do:29 · pkg 14478 RD estimator
rdrobust `var' pop_norm, h(10000 10000)  covs(cvar) c(0) p(1) kernel(tri) vce(cluster ibge6) detail
Estimating intergenerational returns to medical care: New evidence from at-risk newborns Journal of Public Economics 2026 · source_AppendixReplication.do:137 · pkg 14682 RD estimator
eststo: rdrobust dead_at_a00 PESO, c(1500) scalepar(-1) all covs(${g1blnctrls} dbw1??0) vce(cluster PESO) h(100)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
eststo: rdrobust dead_at_a00 PESO, c(1500) scalepar(-1) all covs(edmom EDAD_MADRE married doc_aten bregion_?? byear_???? dbw1??0) vce(cluster PESO) h(100)