Regression discontinuity
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
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.
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
-
profitability (ROA, ROE, margins, earnings)28% · 5written as
YR2015Dif1_presrate_pm8_r,calc_netinc,ind_adj_roa_w,lag_roa,lag_roe4 examples in the code
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
HHJLM_Replication_RFS_do_02_regression_discontinuity.do:19 ·
margin_hold60(loop-expanded: var=margin_hold60)rdrobust `var' running , covs(dum_rd_group* dum_3ind*) vce(cluster code) kernel(tri)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
rdrobust `v' sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- Deposit Insurance Premiums and Bank Risk
Review of Corporate Finance Studies 2023 · pkg 7255
Kim_Rezende_DIPBR_RCFS.do:118 ·
calc_netincrdrobust calc_netinc base_ar if riskcat == 1 & newinst == 0 & uda == 0 & dida == 0 & bdr == 0 & tot_assets > 100000 & tot_assets < 5000000 , c(5) deriv(1) vce(cluster id_rssd) p(1) q(2)
- Opioid Crisis and Real Estate Prices
Journal of Financial and Quantitative Analysis 2026 · pkg 14125
ReplicationCodeImputed/Stata/[R] StateLawRDPriorDensity.do:26 ·
YR2015Dif1_presrate_pm8_rrdrobust YR2015Dif1_presrate_pm8_r borderdis, vce(hc0) p(1)
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
-
leverage / debt22% · 4written as
DTI_cc,debt_dum1,debt_dum2,lev_w,std.auto_debt4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
5_Analysis.do:3560 ·
debt_dum1qui rdrobust debt_dum1 temp `if' `opt'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust debt_dum1 temp if f2==2 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) & (optaget1==1 | optaget2==1) & if f2==2 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgr …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
rdrobust `v' sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- Moral Hazard versus Liquidity in Household Bankruptcy
The Journal of Finance 2023 · pkg 15926
replication kit/code/RKD_16b_SIPP_credit_rd_rk.R:322 ·
std.cc_debtrk.mod = rdrobust(dt$std.cc_debt, dt$eq_dist, covs = dt$heq, weights = dt$hhweight, deriv = 1, all = T, kernel = "uniform") - Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
eststo: reghdfe DTI_cc fin_lit fin_lit_running running /// if abs(running)<48 & eeduc>38 & reference==1, /// absorb(year erace esex ebornus rfpersons emp eeduc) cluster(running)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
stock returns / abnormal returns22% · 4written as
abn_ret_1yr,abn_ret_3day,bh0_dret_mktadj126_af,car_ret20,car_ret54 examples in the code
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
replication_material_Codes_discontinuity_analysis.do:91 ·
return_stockeststo rdd1: rdrobust return_stock `rv' if date_8oct ==1 & (sort_intl_dummy_0==1 ) , c(0) p(1) all bwselect( msetwo )
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo rdd1: rdrobust return_stock rv_10bn if date_8oct ==1 & (sort_intl_dummy_0==1 ) , c(0) p(1) all bwselect( msetwo )
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
rdrobust `var' running , covs(dum_rd_group* dum_3ind*) vce(cluster code) kernel(tri)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
rdrobust `v' sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- Get the Money Somehow: The Effect of Missing Performance Goals on Insider Trading
Journal of Financial and Quantitative Analysis 2026 · pkg 252454
3.main_tables_dataverse.do:110 ·
bh0_dret_mktadj126_afrdrobust bh0_dret_mktadj126_af diff_rd if inrange(diff_rd, `p10', `p90') & `base', all
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust bh0_dret_mktadj126_af diff_rd if inrange(diff_rd, r(p10), r(p90)) & (ceoyear0==1 & close==1 & (ind_thhd==1 | (ind_thhd==0 & interpolationthreshold~="y")) & pctincentpay_dif_nodup~=. & perform …
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
-
employment / labour supply17% · 3written as
comp_committee_tenure_ave,female_laborforce,female_unemploymentrate,job_move,male_laborforce3 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
Code_produce_table4_final.do:109 ·
comp_committee_tenure_ave(loop-expanded: v=comp_committee_tenure_ave)rdrobust `v' sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- Women in Politics: The Effect on Board Diversity
Journal of Financial and Quantitative Analysis 2026 · pkg 14144
Tables_4to10.do:137 ·
female_laborforcerdrobust female_laborforce winmargin2, vce(cluster stateid) all
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
crime_replication/tables/table_ia13.do:13 ·
job_moveeststo: reghdfe job_move fin_lit fin_lit_running running /// if abs(running)<48 & eeduc>38 & reference==1 & virginia_born==1, /// absorb(year erace esex rfpersons emp eeduc) cluster(running)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
demographics (often balance / covariate checks)11% · 2written as
asian,black,gender1,hispanic,male2 examples in the code
- Women in Politics: The Effect on Board Diversity
Journal of Financial and Quantitative Analysis 2026 · pkg 14144
Tables_4to10.do:686 ·
gender1rdrobust gender1 winmargin2, covs(laggender1 logassets roa io logpi_percapita logpopulation pctwomen femalemaleincomeratio female_laborforce male_laborforce female_unemploymentrate male_unemploymentra …
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
eststo: reghdfe white fin_lit running fin_lit_running /// if abs(running)<17 & sample==1, noabsorb cluster(running)
- Women in Politics: The Effect on Board Diversity
Journal of Financial and Quantitative Analysis 2026 · pkg 14144
-
education / test scores11% · 2written as
college_bach,math_peers,post_grad2 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
5_Analysis.do:4074 ·
math_peersqui rdrobust math_peers tmp `if2' `opt'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust math_peers tmp if f2==2 & dist10!=0 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) & (optaget1==1 | optaget2==1) & if kot2_field_l2=="Economics" & f1!=2 & abs(dist1 …
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
crime_replication/tables/table_ia10.do:5 ·
college_bacheststo: reghdfe college_bach fin_lit fin_lit_running running thnetworth lnincome /// if abs(running)<48 & eeduc>38 & reference==1, /// absorb(year erace esex ebornus rfpersons emp) cluster(run …
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
firm size (assets, market cap)11% · 2written as
logassets,size_w2 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
rdrobust `v' sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- Women in Politics: The Effect on Board Diversity
Journal of Financial and Quantitative Analysis 2026 · pkg 14144
Tables_4to10.do:129 ·
logassetsrdrobust logassets winmargin2, vce(cluster stateid) all
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
investment / capex / R&D11% · 2written as
inv_comp,investment2 examples in the code
- Investor Composition and the Liquidity Component in the U.S. Corporate Bond Market
The Journal of Finance 2026 · pkg 15616
eststo: rdrobust inv_comp ttm , c(10) covs(age coupon lamt at long_debt leverage profitA vol level slope numeric_rating) all
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
crime_replication/tables/table_9.do:13 ·
investmenteststo: reghdfe investment fin_lit fin_lit_running running /// if abs(running)<48 & eeduc>38 & reference==1, /// absorb(year erace esex ebornus rfpersons emp eeduc) cluster(running)
- Investor Composition and the Liquidity Component in the U.S. Corporate Bond Market
The Journal of Finance 2026 · pkg 15616
Economics — 153 of 227 packages have a readable outcome
-
demographics (often balance / covariate checks)25% · 38written as
age(9),female(8),male(5),married(3),age_resid(2)4 examples in the code
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
rdrobust `y'_resid runvar if RD_sample==1 , c(0) p(1) vce(cluster split_seg_id) h($h )
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
rdrobust `dep_var' norm_dist, c(0) p(`polynomial_level') h(`bandwidth') kernel(`kernel_choice_lpoly') vce(cluster `cluster_level') covs(`controls')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `dep_var' norm_dist, c(0) p(1) h(e(h_mserd)) kernel(uni) vce(cluster cluster_id) covs(rconc year age age2)
- Evidence on Job Search Models from a Survey of Unemployed Workers in Germany
Quarterly Journal of Economics 2022 · pkg 7510
eststo e3: rdrobust `x' CEMP_center if res_rdP12P15_11all==1, c(0) h(`=365*5') kernel(uniform) covs(dum_wave*) vce(cluster CEMP_center)
- Political Foundations of Racial Violence in the Post-Reconstruction South
Quarterly Journal of Economics 2026 · pkg 7586
TW-QJE2025-Replication/code/3a_main_regressions.do:55 ·
percent_blackrdrobust percent_black demloss if South==1, c(0) p(1) all covs($year_fe $state_fe $xy_ctrls) vce(cluster $county)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust percent_black 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 …
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
-
education / test scores23% · 35written as
enrolled(3),science(2),Z_mayor_college,Z_mayor_yrs_schooling,academic_school4 examples in the code
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
qje_replication_files/chi-cro/table3_cl.do:26 ·
enroll_colmaj(loop-expanded: level=colmaj; choice=enroll)rdrobust `choice'_`level' score_rd if `if',
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
rdrobust `dep_var' norm_dist, c(0) p(`polynomial_level') bwselect(`bandwidth_choice') kernel(`kernel_choice') vce(cluster `cluster_level') covs(`controls')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust literacy norm_dist, c(0) p(1) bwselect(mserd) kernel(tri) vce(cluster cluster_id) covs(year age age2 gender conc_id)
- Evidence on Job Search Models from a Survey of Unemployed Workers in Germany
Quarterly Journal of Economics 2022 · pkg 7510
eststo e3: rdrobust `x' CEMP_center if res_rdP12P15_11all==1, c(0) h(`=365*5') kernel(uniform) covs(dum_wave*) vce(cluster CEMP_center)
- Financial Aid and Upward Mobility: Evidence from Colombia’s Ser Pilo Paga Juliana London˜o
Journal of Political Economy 2026 · pkg 7848
rdrobust `o' running_`r' if ${cond_`r'}, masspoints(off)
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
-
migration / population18% · 27written as
lpop(2),population(2),urban(2),urban_resid(2),AVG_POP4 examples in the code
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
rdrobust `y'_resid runvar if RD_sample==1 , c(0) p(1) vce(cluster split_seg_id) h($h )
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
QJE_Replication/Code/Appendix/Balance_Grid_Table.do:214 ·
nav_river_density(loop-expanded: var=nav_river_density)rdrobust `var' norm_dist, h(`avg_bw' `avg_bw') c(0) p(`polynomial_level') kernel(`kernel_choice') vce(cluster `cluster_level') covs(`covs')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `var' norm_dist, h(0 + rd_opt_`var'/0+1 0 + rd_opt_`var'/0+1) c(0) p(1) kernel(tri) vce(cluster terr_name) covs(rconc)
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
qui rdrobust `z' margin
- Political Foundations of Racial Violence in the Post-Reconstruction South
Quarterly Journal of Economics 2026 · pkg 7586
rdrobust logdensity demloss if South==1, c(0) p(1) all covs($year_fe $state_fe $xy_ctrls) vce(cluster $county)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust logdensity 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 sta …
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
-
employment / labour supply16% · 25written as
work12(2),work15(2),work18(2),work3(2),work6(2)4 examples in the code
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
4_Abatement_replication.do:16 ·
resid1_hoursrdrobust resid1_hours distance_new,masspoints(off) kernel(tri) all vce(cluster site_id)
- Evidence on Job Search Models from a Survey of Unemployed Workers in Germany
Quarterly Journal of Economics 2022 · pkg 7510
REPLICATION_reducedform/prog/63_rd_tables_figures.do:61 ·
job_search_cap_minutes(loop-expanded: x=job_search_cap_minutes)eststo e3: rdrobust `x' CEMP_center if res_rdP12P15_11all==1, c(0) h(`=365*5') kernel(uniform) covs(dum_wave*) vce(cluster CEMP_center)
- Financial Aid and Upward Mobility: Evidence from Colombia’s Ser Pilo Paga Juliana London˜o
Journal of Political Economy 2026 · pkg 7848
rdrobust `o' running_`r' if ${cond_`r'}, masspoints(off) - The Long-Run Effects of California’s Paid Family Leave Act on Women’s Careers and Childbea
American Economic Journal: Economic Policy 2025 · pkg 11409
dofiles/analysis/tables/3b_bw_average_employment.do:93 ·
r_avg_work_1to12_mom(loop-expanded: z=avg_work_1to12_mom)rdrobust r_`z' d1, c(0) kernel(uni) p(1);
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
-
voting / elections / politics16% · 24written as
turnout(4),nb_candidates_R1(2),prop_registered_turnout_R1(2),A_num_candidates,CSSD_mayor4 examples in the code
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
QJE_Replication/Code/Appendix/agesets_tables.do:159 ·
chiefvil_elected_secqui rdrobust `dep_var' norm_dist, c(0) p(`polynomial_level') bwselect(`bandwidth_choice') kernel(`kernel_choice') vce(cluster `cluster_level') covs(`controls')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust chiefvil_elected_sec norm_dist, c(0) p(1) bwselect(mserd) kernel(tri) vce(cluster vill_ID) covs(age age2 i_terr1 i_team_id*)
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
rdrobust_illustration.do:51 ·
voterdrobust vote margin
- Up the Political Ladder: Gender Parity in the Effects of Electoral Defeats
AEA Papers and Proceedings 2021 · pkg 11105
rdrobust `y' first_margin, kernel(uni) vce(cluster `cluster_var')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `y' first_margin, kernel(uni) vce(cluster state_fips)
- The distribution game: Evidence from 200,000 campaign donors
Journal of Development Economics 2026 · pkg 14478
The Distribution Game Evidence from 200,000 Campai/0_5_balance_covariates.do:50 ·
turnout(loop-expanded: var=turnout)qui rdrobust `var' pop_norm, covs(cvar) p(1) c(0) h(10000 10000) kernel(tri) vce(cluster ibge6)
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
-
income / consumption / wealth / inequality15% · 23written as
income(3),gini(2),POOR,assets_post_w,expenditure4 examples in the code
- The Employment Effects of Lump-Sum and Contingent Job Insurance Policies: Evidence from Br
Review of Economics and Statistics 2022 · pkg 13585
qui eststo: rdrobust `var' x , c(0.0000001) deriv(0) p(0) kernel(tri) vce(cluster cpf)
- Election by Community Consensus: Effects on Political Selection and Governance
Review of Economics and Statistics 2022 · pkg 13789
qui rdrobust `out' gp_pop if inrange(gp_pop,`b'-1000,`b'+999), c(`b') all bwselect(msetwo) vce(cluster gp_pop) covs(year1 year2 year3 gp_scst prop_scst)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust `out' gp_pop if inrange(gp_pop,5001-1000,5001+999), c(5001) all bwselect(msetwo) vce(cluster gp_pop) covs(year1 year2 year3 gp_scst prop_scst)
- The Causal Effects of R&D Grants: Evidence from a Regression Discontinuity
Review of Economics and Statistics 2024 · pkg 13961
appendix.do:1814 ·
assets_post_weststo: xi: rdrobust assets_post_w rank if phase_smei==2 & sample2, c(0) p(1) covs(assets_pre_w i.competition) vce(cluster competition)
- The distribution game: Evidence from 200,000 campaign donors
Journal of Development Economics 2026 · pkg 14478
The Distribution Game Evidence from 200,000 Campai/2_1_rais_qualification.do:41 ·
inc_mismatching(loop-expanded: var=inc_mismatching)rdrobust `var' pop_norm if post_reform == 1, /// h(10000 10000) covs(`covs') fuzzy(complier) p(1) c(0) kernel(`kernel') vce(cluster `cluster') detail
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `var' pop_norm if post_reform == 1, h(10000 10000) covs(cvar election) fuzzy(complier) p(1) c(0) kernel(tri) vce(cluster ibge6) detail
- The Employment Effects of Lump-Sum and Contingent Job Insurance Policies: Evidence from Br
Review of Economics and Statistics 2022 · pkg 13585
-
health / mortality9% · 14written as
LBW,behavior_health,d_mr_injuries_tran_24m,d_mr_injuries_tran_24m_pla,d_mr_injuries_tran_8m4 examples in the code
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
QJE_Replication/Code/Appendix/Grid_Colonial.do:197 ·
health_centers_1953rdrobust `dep_var' norm_dist, c(0) p(`polynomial_level') bwselect(`bandwidth_choice') kernel(`kernel_choice') vce(cluster `cluster_level') covs(`controls')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust health_centers_1953 norm_dist, c(0) p(1) bwselect(mserd) kernel(tri) vce(cluster terr) covs(rconc)
- Disability Insurance Income Saves Lives
Journal of Political Economy 2023 · pkg 7780
3_code_4_tables.do:1107 ·
mortcapture noisily rdrobust mort ime, c(0) deriv(1) scalepar(`scale') p(1) q(2) kernel(uni) scaleregul(0) vce(nn 3) covs(`cov_controls2')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):capture noisily rdrobust mort ime, c(0) deriv(1) scalepar(`scale') p(1) q(2) kernel(uni) scaleregul(0) vce(nn 3) covs(age_cwhs male black)
- Regression Discontinuity Designs Using Covariates
Review of Economics and Statistics 2019 · pkg 13391
Calonico-Cattaneo-Farrell-Titiunik_2018_RESTAT.do:34 ·
mort_age59_related_postHSqui rdrobust $y $x, c(59.1968)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust mort_age59_related_postHS povrate60, c(59.1968)
- Election by Community Consensus: Effects on Political Selection and Governance
Review of Economics and Statistics 2022 · pkg 13789
Replication_Files_do_files_6_baseline.do:340 ·
healthcenters(loop-expanded: x=healthcenters; c=5001)qui rdrobust `x' gp_pop if inrange(gp_pop,`c'-1000,`c'+999), c(`c') all bwselect(msetwo) vce(cluster gp_pop)
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
-
crime / conflict / corruption8% · 13written as
Z_attacked_executive_CR,Z_attacked_executive_CR_private,Z_attacked_executive_CR_public,Z_attacked_executive_CR_threat,Z_attacked_executive_CR_violent4 examples in the code
- Political Foundations of Racial Violence in the Post-Reconstruction South
Quarterly Journal of Economics 2026 · pkg 7586
TW-QJE2025-Replication/code/1a_main.do:744 ·
black_lynch_afterqui 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 sta …
- Language Training and Refugees’ Integration
Review of Economics and Statistics 2024 · pkg 13788
rdrobust `var'_sum day_nr, kernel(tri) c(0) p(1)
- SNAP Benefits and Crime: Evidence from Changing Disbursement Schedules
Review of Economics and Statistics 2019 · pkg 13927
eststo rob_`t'tri_2: rdrobust `t' run_var, kernel(tri) h(1186) covs(`weather' dow_1 dow_2 dow_3 dow_4 dow_5 dow_6 year_2008 year_2009 year_2010 year_2011 year_2012 year_2013)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo rob_`t'tri_2: rdrobust `t' run_var, kernel(tri) h(1186) covs(prcp snwd snow tmax tmin awnd dow_1 dow_2 dow_3 dow_4 dow_5 dow_6 year_2008 year_2009 year_2010 year_2011 year_2012 year_2013)
- Cooperation between national armies: Evidence from the Sahel borders
Journal of Development Economics 2026 · pkg 14472
Replication Data Cooperation between National Armi/code/tableA3.do:85 ·
event_attack_geo1(loop-expanded: geo=geo1; period=f2017to2020)eststo: rdrobust event_attack_$geo borderMLIBFNER if inlist(COUNTRY,"Mali","Burkina Faso", "Niger") & borderMLIBFNER >${maxb} & period =="`period'" , c(0) bwselect(msetwo) all covs(COUNTRY_* borde …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: rdrobust event_attack_`geo' borderMLIBFNER if inlist(COUNTRY,"Mali","Burkina Faso", "Niger") & borderMLIBFNER >-200 & period =="`period'" , c(0) bwselect(msetwo) all covs(COUNTRY_* border_ctrl …
- Political Foundations of Racial Violence in the Post-Reconstruction South
Quarterly Journal of Economics 2026 · pkg 7586
Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)
- Log Total Assets 1 package · 1 models
1 example in the code
- Plata y Plomo : How Higher Wages Expose Politicians to Criminal Violence
American Economic Journal: Economic Policy 2026 · pkg 17453
rdrobust `var' pop_total_2011, c(5000) all stdvars(on) vce(cluster province_code)
- Plata y Plomo : How Higher Wages Expose Politicians to Criminal Violence
American Economic Journal: Economic Policy 2026 · pkg 17453
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)
cluster97default97robust10
Clustering variables (of the 174 packages running the dedicated estimator)
id633ac3cluster_id3county3cpf2district2m2
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).
- Robust Nonparametric Confidence Intervals for Regression-Discontinuity Designs — Sebastian Calonico; Matias D. Cattaneo; Rocio Titiunik (2014), Econometrica137 · 55%
- Manipulation of the running variable in the regression discontinuity design: A density test — Justin McCrary (2008), Journal of Econometrics87 · 35%
- Regression Discontinuity Designs in Economics — David S Lee; Thomas Lemieux (2010), Journal of Economic Literature56 · 22%
- Optimal Bandwidth Choice for the Regression Discontinuity Estimator — G. Imbens; K. Kalyanaraman (2012), Review of Economic Studies39 · 16%
- Regression discontinuity designs: A guide to practice — Guido W. Imbens; Thomas Lemieux (2008), Journal of Econometrics35 · 14%
- Why High-Order Polynomials Should Not Be Used in Regression Discontinuity Designs — Andrew Gelman; Guido Imbens (2019), Journal of Business and Economic Statistics33 · 13%
- Rdrobust: Software for Regression-discontinuity Designs — Sebastián Calónico; Matias D. Cattaneo; Max H. Farrell; Rocío Titiunik (2017), The Stata Journal Promoting communications on statistics and Stata33 · 13%
- Simple Local Polynomial Density Estimators — Cattaneo, Matias D.; Jansson, Michael; Ma, Xinwei (2020), Journal of the American Statistical Association32 · 13%
- Regression Discontinuity Designs Using Covariates — Sebastian Calonico; Matias D. Cattaneo; Max H. Farrell; Rocío Titiunik (2019), Review of Economics and Statistics28 · 11%
- rddensity: Manipulation Testing Based on Density Discontinuity — Cattaneo, Matias D.; Jansson, Michael; Ma, Xinwei (2017), CRAN: Contributed Packages24 · 10%
- Randomized experiments from non-random selection in U.S. House elections — David S. Lee (2008), Journal of Econometrics17 · 7%
- Identification And Estimation Of Treatment Effects With A Regression-Discontinuity Design — Jinyong Hahn; Petra Todd; Wilbert van der Klaauw (2001), Econometrica15 · 6%
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).
rdrobust `Y' run, c(0) fuzzy(d1) vce(cluster ssnrep) all
qui rdrobust black_lynch_after demloss if South==1, c(0) p(1) all covs($year_fe $state_fe $xy_ctrls) vce(cluster countyunit)
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)
rdrobust nfert dista, c(0) p(1) kernel(triangular) h(`d') all masspoints(adjust) covs(byear_* seg_*) vce(cluster ninsee_com)
rdrobust nfert dista, c(0) p(1) kernel(triangular) h(16.91) all masspoints(adjust) covs(byear_* seg_*) vce(cluster ninsee_com)
rdrobust `o' running_`r' if ${cond_`r'}, masspoints(off)
rdrobust `y'_resid runvar if RD_sample==1 & `i'==1, c(0) p(1) fuzzy(r) vce(cluster split_seg_id) h(`h')
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)')
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)
rdrobust `y`Y'' borderdis, covs(`x`X'') vce(hc0) p(`p`P'') `h`H''
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
rdrobust porc_raca_bw margin if abs(margin) > 0.005, kernel(uni)
rdrobust $y $x if $G5C & $x < ${maxb} & period =="f2017to2020", c($c) bwselect(msetwo) all covs(COUNTRY_* border_ctrl_distance_*)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_*)
rdrobust `var' pop_norm, h(10000 10000) covs(cvar) c(0) p(1) kernel(tri) vce(cluster ibge6) detail
eststo: rdrobust dead_at_a00 PESO, c(1500) scalepar(-1) all covs(${g1blnctrls} dbw1??0) vce(cluster PESO) h(100)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)