Regression discontinuity
This design across fields
| Field | packages | main clustering (of those that cluster) | winsorize / trim | checks |
|---|---|---|---|---|
| All fields | 260 | author-named unit 50%; county / city / district 13%; unspecified id (id, i, group...) 12%; person 6% (n=113) | 23% | manipulation / density test 47%; data-driven bandwidth 76% |
| Finance | 28 | author-named unit 25%; bank 25%; state / province 25%; unspecified id (id, i, group...) 25% (n=4) | 36% | manipulation / density test 43%; data-driven bandwidth 61% |
| Accounting | 3 thin | unspecified id (id, i, group...) 100% (n=1) | 33% | manipulation / density test 33%; data-driven bandwidth 100% |
| Economics | 227 | author-named unit 50%; county / city / district 14%; unspecified id (id, i, group...) 11%; person 7% (n=107) | 22% | manipulation / density test 48%; data-driven bandwidth 78% |
| Other fields | 2 thin | author-named unit 100% (n=1) | 0% | manipulation / density test 0%; data-driven bandwidth 50% |
The typical package, and three that differ
Typical = the package that makes the most of this cell's modal choices
(rdrobust, clustered by county / city / district, time fixed effects,
no winsorizing, drops missing rows) —
it matches 5 of 6. Each contrast takes the second most common choice on one dimension.
- commands
rdrobust- clusters by
- county / city / district; author-named unit
- fixed effects
- none absorbed
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with another value (imputation); replace missing with zero (imputation)
- sample years
- 2000–2000 (as on the package page)
- checks
- data-driven bandwidth
- commands
rdrobust- clusters by
- person
- fixed effects
- none absorbed
- outliers
- no winsorizing / trimming found
- missing values
- replace missing with zero (imputation); drop rows with missing values; replace missing with another value (imputation)
- sample years
- 2006–2010 (as on the package page)
- checks
- manipulation / density test; data-driven bandwidth; triangular kernel stated
- commands
reg- clusters by
- time
- fixed effects
- time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with another value (imputation); replace missing with zero (imputation); interpolate missing values
- sample years
- 2011–2016 (as on the package page)
- checks
- data-driven bandwidth; RD plot; multiple-testing correction
- commands
rdrobust- clusters by
- county / city / district; time; county / city / district × time
- fixed effects
- none absorbed
- outliers
- winsorize 5/95; winsorize 5/95 by group; winsorize 1/99
- missing values
- replace missing with another value (imputation); interpolate missing values; drop rows with missing values; replace missing with zero (imputation)
- sample years
- 1983–2014 (as on the package page)
- checks
- manipulation / density test; data-driven bandwidth
Sample screens
-
exclude public administration / unclassified0% · 1
1 example in the code
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
drop if naics2==92
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
Share of 260 packages in the cell. Greyed: fewer than 10 packages.
Industry screens are read into whole SIC/NAICS sectors (Samples page); CRSP screens are share codes 10/11, exchange codes 1–3 and a price cut of $10 or less in a package that reads CRSP / Compustat / TAQ.
Outliers
60 of 260 packages (23%) winsorize or trim something: 55 winsorize, 10 trim, 13 by group (e.g. by year).
-
winsorize 1/9942% · 25
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
replace `x' = r(p1) if `x'<r(p1) & !mi(`x')
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
winsor2 pillar1_profit , cuts(1 99) replace
- Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
replace `var' = p1 if `var' < p1
- Affirmative Action, Mismatch, and Economic Mobility after California’s Proposition 209
Quarterly Journal of Economics 2022 · pkg 7532
A$income_parent<-winsor(A$income_parent,0.01) #Top-coded
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
winsorize none/9923% · 14
4 examples in the code
- Marginal Returns to Public Universities
Quarterly Journal of Economics 2026 · pkg 7567
replace `VAR' = p99 if `VAR'!=. & `VAR'>p99 // Winsorize percent absent and disciplinary days
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
winsor2 oe_total, replace cuts(0 99)
- Disability Insurance Income Saves Lives
Journal of Political Economy 2023 · pkg 7780
replace `earnvar'=`=p99' if `earnvar'>`=p99'
- Do Tax Incentives Increase Firm Innovation? An RD Design for R&D, Patents, and Spillovers
American Economic Journal: Economic Policy 2023 · pkg 11497
cap winsor allpat_`yr', p(0.01) highonly gen(allpat_`yr'_w1)
- Marginal Returns to Public Universities
Quarterly Journal of Economics 2026 · pkg 7567
-
winsorize none/9515% · 9
4 examples in the code
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
winsor2 blank, replace cuts(0 95)
- Financial Aid and Upward Mobility: Evidence from Colombia’s Ser Pilo Paga Juliana London˜o
Journal of Political Economy 2026 · pkg 7848
winsor2 COSTO_MATRÍCULA_ESTUD_NUEVOS if SECTOR=="Oficial", replace cuts(0 95)
- Organized Voters: Elections and Public Funding of Nonprofits
American Economic Review 2025 · pkg 11563
replace amount_w95 = `r(p95)' if amount_w95 >= `r(p95)'
- Cooperation between national armies: Evidence from the Sahel borders
Journal of Development Economics 2026 · pkg 14472
replace top`type'`geo'=r(p95) if top`type'`geo'>r(p95)
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
-
trim 1/9910% · 6
4 examples in the code
- Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
keep if inrange(diff_date, r(p1), r(p99))
- Persistent Stigma in Space: 100 Years of Japan's Invisible Race and Their Neighborhoods
Review of Economics and Statistics 2025 · pkg 13084
keep if inrange(pdensity, r(p1), r(p99))
- Crowd-Out, Education, and Employer Contributions to Workplace Pensions: Evidence from Cana
Review of Economics and Statistics 2018 · pkg 13814
keep if saverate_avg>=r(p1) & saverate_avg<=r(p99)
- Investor Composition and the Liquidity Component in the U.S. Corporate Bond Market
The Journal of Finance 2026 · pkg 15616
winsor2 inv_comp, replace cuts(1 99) trim
- Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
-
winsorize 1/99 by group7% · 4
4 examples in the code
- Mandatory Notice of Layoff, Job Search, and Efficiency
Quarterly Journal of Economics 2025 · pkg 7669
winsor2 `outcome' ,replace c(1 99) by(year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):winsor2 log_manl_newfirm2 ,replace c(1 99) by(year)
- Investor Composition and the Liquidity Component in the U.S. Corporate Bond Market
The Journal of Finance 2026 · pkg 15616
winsor2 t_spread, cuts(1 99) by(fdate) replace
- Smokestacks and the Swamp
Review of Financial Studies 2026 · pkg 81074
winsor2 pollution, replace by(chemical)
- Capital Gains Taxes and Real Corporate Investment: Evidence from Korea
American Economic Review 2022 · pkg 89298
winsor2 dividend buyback, by(year T) replace cuts(1 99)
- Mandatory Notice of Layoff, Job Search, and Efficiency
Quarterly Journal of Economics 2025 · pkg 7669
-
winsorize 2/987% · 4
4 examples in the code
- Affirmative Action, Mismatch, and Economic Mobility after California’s Proposition 209
Quarterly Journal of Economics 2022 · pkg 7532
A$AIS_rounded<-round(A$AIS/500)*500 ; A$hsgpa_rounded<-winsor(round(A$hsgpa/.25)*.25,.02) ; A$Count<-1 ; A$YEARAPAY_rounded<-A$YEARAPAY-(A$YEARAPAY==1995) #-(A$ …
- The Causal Effects of R&D Grants: Evidence from a Regression Discontinuity
Review of Economics and Statistics 2024 · pkg 13961
winsor2 `var', cuts(2 98) suff(_w)
- Opioid Crisis and Real Estate Prices
Journal of Financial and Quantitative Analysis 2026 · pkg 14125
winsor2 LogPC_HomeValue3YR LogPC_HomeValue4YR LogPC_HomeValue5YR , cuts(2 98) replace
- Impact of fertility relaxation on the housing market outcomes
Journal of Urban Economics 2025 · pkg 39514
winsor2 ltv,cuts(2 98) replace
- Affirmative Action, Mismatch, and Economic Mobility after California’s Proposition 209
Quarterly Journal of Economics 2022 · pkg 7532
-
winsorize 5/95 by group7% · 4
4 examples in the code
- Mandatory Notice of Layoff, Job Search, and Efficiency
Quarterly Journal of Economics 2025 · pkg 7669
winsor2 `var', cuts(5 95) replace by(evyear)
- Partisanship and Fiscal Policy in Economic Unions: Evidence from US States
American Economic Review 2023 · pkg 11316
winsor2 ratio, cuts(5 95) replace by(aux_lag_rep)
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
winsor2 `var', by(year) cuts(5 95) suffix(_w5a) // at 5th and 95th percentiles, across industries
- Capital Gains Taxes and Real Corporate Investment: Evidence from Korea
American Economic Review 2022 · pkg 89298
winsor2 linv, by(year T) replace cuts(5 95)
- Mandatory Notice of Layoff, Job Search, and Efficiency
Quarterly Journal of Economics 2025 · pkg 7669
-
winsorize 5/955% · 3
3 examples in the code
- Partisanship and Fiscal Policy in Economic Unions: Evidence from US States
American Economic Review 2023 · pkg 11316
winsor2 HPC, suffix(_win) cuts(5 95)
- Banks and Inequality: Evidence from a Nationwide Branch Expansion Policy
Journal of Money, Credit and Banking 2025 · pkg 49368
winsor2 food_con, replace cut(5 95)
- Capital Gains Taxes and Real Corporate Investment: Evidence from Korea
American Economic Review 2022 · pkg 89298
winsor2 grlab grrev, replace cuts(5 95)
- Partisanship and Fiscal Policy in Economic Unions: Evidence from US States
American Economic Review 2023 · pkg 11316
Share of the 60 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values76% · 198
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
drop if cut==.
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
df_reg = df_highfreq[['Date','return_stock', select_var,'ticker']].dropna()
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
keep if max_ret!=.
- Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
keep if merged != .
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
replace missing with another value (imputation)59% · 153
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
replace ansdage_2008 = ansdage if mi(ansdage_2008)
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
replace sale = sales if missing(sale) // sale is a compustat variable. sales is a y14 variable.
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
replace nshrttl = l1.nshrttl if nshrttl==.
- Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
replace deposit_final = purchaseprice - loan_final if missing(deposit_final)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
replace missing with zero (imputation)59% · 153
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
replace restance = 0 if mi(restance) & in_irte_10_all==1
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
replace mf_shares = 0 if mf_shares==. & _m==1
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
replace dropout_any = 0 if missing(dropout_any)
- Concessions, Violence, and Indirect Rule: Evidence from the Congo Free State
Quarterly Journal of Economics 2021 · pkg 7382
replace num_conflicts_bq = 0 if missing(num_conflicts_bq)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
interpolate missing values13% · 34
4 examples in the code
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
tsfill, full
- Evidence on Job Search Models from a Survey of Unemployed Workers in Germany
Quarterly Journal of Economics 2022 · pkg 7510
tsfill, full
- Mandatory Notice of Layoff, Job Search, and Efficiency
Quarterly Journal of Economics 2025 · pkg 7669
tsfill
- Financial Aid and Upward Mobility: Evidence from Colombia’s Ser Pilo Paga Juliana London˜o
Journal of Political Economy 2026 · pkg 7848
tsfill, full
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
Share of 260 packages in the cell (a package can do several). Greyed: fewer than 10 packages.
Fills count only imputation of a measured variable (R&D set to 0 after a merge), not a dummy being completed.
Standard errors
- clusters in at least one estimation59% · 113
- robust only (never clusters)41% · 77
Of the 190 packages with a model that shows the design.
Main clustering level
-
author-named unitnames the reader has no word for, commonest first:
3,ac,cpf,m,split_seg_id,10,11,1350% · 564 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 & `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)')
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
rdrobust `y' distance_new if neg_ind0==1,masspoints(off) kernel(`kvar') all vce(cluster site_id)
- Long-Range Growth: Economic Development in the Global Network of Air Links
Quarterly Journal of Economics 2018 · pkg 7481
qui: rdrobust totnr_weekly2014 airportdist, p(1) h(`bw' `bw') c(6000) vce(nncluster countrypair)
- 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)
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
-
county / city / district13% · 15
4 examples in the code
- Partisanship and Fiscal Policy in Economic Unions: Evidence from US States
American Economic Review 2023 · pkg 11316
rdrobust `vv' lag_myMOV if bigwealthfund ==0 & year>1982 & year<2015 & l.GovernorsParty >-1, vce(cluster fips) rho(1) kernel(uniform)
- Individualized Benefits and Access to Active Labor Market Programs Boost Refugee Women's E
Review of Economics and Statistics 2025 · pkg 13046
rdrobust `x' $run if `rest1', kernel(tri) p(1) covs($controls1) vce(cluster kommun)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `x' running if missdat!=1 & intro_restr!=1 & y_aft_put == `i' & woman==`w' & lim<`bw_`w'', kernel(tri) p(1) covs(cob_*) vce(cluster kommun)
- Gender Differences in Politician Persistence
Review of Economics and Statistics 2023 · pkg 13698
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 county)
- Partisanship and local fiscal policy: Evidence from Brazilian cities
Journal of Development Economics 2021 · pkg 15223
qui rdrobust res_`outcome' margin_mayor_left, vce(cluster mun_code) all
- Partisanship and Fiscal Policy in Economic Unions: Evidence from US States
American Economic Review 2023 · pkg 11316
-
unspecified id (id, i, group...)12% · 14
4 examples in the code
- 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)
- 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 v133 norm_dist, c(0) p(1) bwselect(mserd) kernel(tri) vce(cluster cluster_id) covs(year age age2 gender conc_id)
- Reporting Regulation and Private Firms' Bank Credit
Journal of Accounting Research 2026 · pkg 12762
rdrobust wexposure_cfab_end_assets LDT2, c(0) fuzzy(mixed) h(0.105) kernel(uniform) covs(LDT1 threshold1 LDT1_threshold1 LDT3 threshold3 LDT3_threshold3 wLIQUID …
- Powers that be? Political alignment, government formation, and government stability
Journal of Public Economics 2024 · pkg 15208
eststo a`column': rdrobust `depvar' a_rv , $rd_options
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo a1: rdrobust top a_rv , c(0) p(1) vce(cluster clustvar) masspoints(off) kernel(uniform) all covs(dummies*)
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
-
person6% · 7
4 examples in the code
- Higher-Achievement Schools, Peers And Mental Health
The Economic Journal 2023 · pkg 18302
eststo `sample'`var'l: rdrobust `var' distance id* $controls if `sample' == 1 & abs(distance) <= $bandwidth, c(0) kernel(triangular) h($bandwidth) vce(cluster n …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo `sample'`var'l: rdrobust `var' distance id* female age_ms nor_origin m_nor_origin MAT_NB_sd0 m_MAT_NB_sd0 NOR_NB_sd0 m_NOR_NB_sd0 p_higher_educ m_nmpid m …
- The political consequences of resource scarcity: Targeted spending in a water-stressed dem
Journal of Public Economics 2023 · pkg 38879
rdrobust rabi_TOTmeandaysworked taxi , vce(cluster pid)
- De Jure versus De Facto transparency: Corruption in local public office in India [q]
Journal of Public Economics 2023 · pkg 38896
reg zndays2015 iscandidate c.iscandidate#(c.rvlev##c.pos) c.candfam#(c.rvlev##c.pos) if abs(rvlev) < ${bw}, cluster(pid)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reg zndays2015 iscandidate c.iscandidate#(c.rvlev##c.pos) c.candfam#(c.rvlev##c.pos) if abs(rvlev) < 15.611, cluster(pid)
- The price of forced attendance
Journal of Applied Econometrics 2021 · pkg 45263
rdrobust stdgrade firstyeargpa if cohort<6, c(7) p(1) h(`=h') vce(cluster studentid)
- Higher-Achievement Schools, Peers And Mental Health
The Economic Journal 2023 · pkg 18302
-
state / province4% · 5
4 examples in the code
- 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)
- Women in Politics: The Effect on Board Diversity
Journal of Financial and Quantitative Analysis 2026 · pkg 14144
rdrobust changefdir winmargin2, covs(lagfdir logassets roa io logpi_percapita logpopulation pctwomen femalemaleincomeratio female_laborforce male_laborforce fem …
- Plata y Plomo : How Higher Wages Expose Politicians to Criminal Violence
American Economic Journal: Economic Policy 2026 · pkg 17453
rdrobust attacked_executive_CR pop_total_2011, c(5000) all stdvars(on) covs(ey* prov1-prov107) vce(cluster province_code)
- Vaccines and Verdicts: How Smallpox Court Decisions Affect Anti-Vaccine Discourse and Mort
The Economic Journal 2025 · pkg 18778
eststo m1: rdrobust anti_lasso1 time, vce(cluster stateid) all bwselect(msetwo)
- Up the Political Ladder: Gender Parity in the Effects of Electoral Defeats
AEA Papers and Proceedings 2021 · pkg 11105
-
two-way: author-named unit + author-named unitnames the reader has no word for, commonest first:
3,ac,cpf,m,split_seg_id,10,11,133% · 33 examples in the code
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
eststo, title(`title'): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumbe …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo, title(Optimal): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumber …
- The Political Legacy Of Nazi Annexation
The Economic Journal 2024 · pkg 81247
rdrobust `var' d_ozbellunoudine, vce(nncluster PRO_COM 11)
- Agricultural extension, intra-household allocation and malaria
Journal of Development Economics 2019 · pkg 101416
rdrobust hhheadage mdistance,$default
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust hhheadage mdistance,c(0) h(2) vce(nncluster vid 17)
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
-
unexpanded macro3% · 3
3 examples in the code
- Health Effects of Increasing Income for the Elderly: Evidence from a Chilean Pension Progr
American Economic Journal: Economic Policy 2023 · pkg 16898
rdrobust `outcome' score_dev, c(0) h($bw_num) vce(cluster $cluster_level)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdrobust `outcome' score_dev, c(0) h(`bw_num') vce(cluster `cluster_level')
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
qui eststo diffdisc_`outcome'1: reghdfe `outcome' c.($treat $running $treat_running)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] if abs($runni …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo diffdisc_`outcome'1: reghdfe `outcome' c.(con_win margin_con_either margin_interaction)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] …
- “Descended from Immigrants and Revolutionists”: How Family History Shapes Immigration Poli
Quarterly Journal of Economics 2025 · pkg 46902
rdrobust(y = yvar_vector, x = dt_temp$vote_share_treated, cluster = dt_temp$bioguide_id, c = winner_threshold, kernel = "epanech …
- Health Effects of Increasing Income for the Elderly: Evidence from a Chilean Pension Progr
American Economic Journal: Economic Policy 2023 · pkg 16898
-
bank1% · 1
1 example in the code
- Deposit Insurance Premiums and Bank Risk
Review of Corporate Finance Studies 2023 · pkg 7255
rdrobust forw_lex base_ar if riskcat == 1 & newinst == 0 & uda == 0 & dida == 0 & bdr == 0 & tot_assets > 100000 & tot_assets < 5000000 , c(5) deriv(1) vce( …
- Deposit Insurance Premiums and Bank Risk
Review of Corporate Finance Studies 2023 · pkg 7255
-
country × time1% · 1
1 example in the code
- Electoral Turnovers
Review of Economic Studies 2025 · pkg 80878
rdrobust diff_m1_chix_econ runvar, all vce(cluster country_year)
- Electoral Turnovers
Review of Economic Studies 2025 · pkg 80878
-
county / city / district × time1% · 1
1 example in the code
- Accountability, Political Capture, and Selection Into Politics: Evidence from Peruvian Mun
Review of Economics and Statistics 2021 · pkg 13284
rdrobust `var' voterecall_lag, c(0.5) p(2) vce(cluster district_year)
- Accountability, Political Capture, and Selection Into Politics: Evidence from Peruvian Mun
Review of Economics and Statistics 2021 · pkg 13284
Share of the 113 packages that cluster: each package counted once, at the level most of its estimations use. Greyed: fewer than 10 packages.
Levels are read from variable names (gvkey, permno → firm; fips, county → county). "Author-named unit" is a name that does not reveal its level (fac_id, route, provider); "unspecified id" is id, i, group — never guessed.
Fixed effects
13 of 190 packages absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).
Main fixed-effect set
-
author-named unitnames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp38% · 54 examples in the code
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
eststo, title(`title'): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumbe …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo, title(Optimal): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumber …
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
reghdfe ln_price treat_* treat if abs(dist_bound_0)<2 & (year>=2008 & year<=2019), cluster(id) abs(pmt pm)
- De Jure versus De Facto transparency: Corruption in local public office in India [q]
Journal of Public Economics 2023 · pkg 38896
reghdfe zndif c.rvlev##c.pos##c.cybercaf if abs(rvlev) < ${bw} , cluster(pid) absorb(bid)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe zndif c.rvlev##c.pos##c.cybercaf if abs(rvlev) < 15.611 , cluster(pid) absorb(bid)
- Grade Sensitivity and the Economics Major at a Women’s College
AEA Papers and Proceedings 2021 · pkg 88975
areg `v' D score2 score2i if abs(score2)<=4 [aweight=weight] ,cluster(pidm) a(sectionfe2_both)
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
-
time31% · 4
4 examples in the code
- From the Fringe to the Fore: Labor Unions and Employee Compensation
Review of Economics and Statistics 2020 · pkg 13324
reg ln_diff_wage_def i.win##(c.x_c c.x2_c) rtwxwin tot_wins i.year [iw=share_margin/.5] if num_votes>=20 & abs(vote_share-.5)<=.5& year[_n+1]-year==1& year[_n-1 …
- Public Health Policy at Scale: Impact of a Government-Sponsored Information Campaign on In
Review of Economics and Statistics 2024 · pkg 13861
reg `x' treat di1* $ctrl1 miss_* i.bmonth if inrange(dif,-`bw',`bw'), cluster(birthday)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reg `x' treat di1* i.female i.border i.LBW i.preterm mage i.m_basic i.m_voc i.m_immigrant miss_* i.bmonth if inrange(dif,-`bw',`bw'), cluster(birthday)
- Effects of Peers and Rank on Cognition, Preferences, and Personality
Review of Economics and Statistics 2022 · pkg 13912
xi: reg `var' abovecutoff4 runvar runvar2 runvarint runvar2int i.cutoffid i.smth if abs(runvar)<5, cluster(bin)
- Racial Disparities in Federal Sentencing: Evidence from Drug Mandatory Minimums
Review of Economic Studies 2026 · pkg 19369
reg above290 after##c.dist##y2013 i.dow if abs(dist)<=150, cl(startdate)
- From the Fringe to the Fore: Labor Unions and Employee Compensation
Review of Economics and Statistics 2020 · pkg 13324
-
author-named unit × timenames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp8% · 11 example in the code
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
reghdfe `graphvar' below_eb x_eb int_below_eb `BaseControl' if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe retake below_eb x_eb int_below_eb male han hui urban yingjie age if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid)
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
-
geography (other) × demographic group + author-named unitnames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp8% · 11 example in the code
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
reghdfe financial_crime fin_lit_2014 running_2014 fin_lit_running_2014 /// if abs(running_2014) < 12 & sample == 1, /// absorb(tract_gender_race mailing …
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
-
product × country × unspecified id (id, i, group...)8% · 1
1 example in the code
- Export side effects of wars on organized crime: The case of Mexico
Journal of International Economics 2023 · pkg 102601
reghdfe log_exp PANwin margin MarginXPANwin [aw=pop_05] if abs(margin)<0.07, absorb(product_country_fe) vce(cluster code_municipality_INEGI)
- Export side effects of wars on organized crime: The case of Mexico
Journal of International Economics 2023 · pkg 102601
-
state / province + demographic group + time8% · 1
1 example in the code
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
qui eststo rd_`outcome'2: reghdfe `outcome' $treat $running $treat_running [aw = kernel_tri] if abs($running) < `cct_bw_`outcome'', a($fe_rd) vce(cluster $cl)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo rd_`outcome'2: reghdfe `outcome' con_win margin_con_either margin_interaction [aw = kernel_tri] if abs(margin_con_either) < `cct_bw_`outcome'', a(age …
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
Share of the 13 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
author-named unitnames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp4% · 84 examples in the code
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
eststo, title(`title'): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumbe …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo, title(Optimal): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumber …
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
reghdfe ln_price treat_* treat if abs(dist_bound_0)<2 & (year>=2008 & year<=2019), cluster(id) abs(pmt pm)
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
qui eststo diffdisc_`outcome'2: reghdfe `outcome' c.($treat $running $treat_running)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] if abs($runni …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo diffdisc_`outcome'2: reghdfe `outcome' c.(con_win margin_con_either margin_interaction)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] …
- De Jure versus De Facto transparency: Corruption in local public office in India [q]
Journal of Public Economics 2023 · pkg 38896
reghdfe zndif c.rvlev##c.pos##c.cybercaf if abs(rvlev) < ${bw} , cluster(pid) absorb(bid)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe zndif c.rvlev##c.pos##c.cybercaf if abs(rvlev) < 15.611 , cluster(pid) absorb(bid)
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
-
time4% · 7
4 examples in the code
- From the Fringe to the Fore: Labor Unions and Employee Compensation
Review of Economics and Statistics 2020 · pkg 13324
reg ln_diff_wage_def i.win##(c.x_c c.x2_c) rtwxwin tot_wins i.year [iw=share_margin/.5] if num_votes>=20 & abs(vote_share-.5)<=.5& year[_n+1]-year==1& year[_n-1 …
- Public Health Policy at Scale: Impact of a Government-Sponsored Information Campaign on In
Review of Economics and Statistics 2024 · pkg 13861
reg `x' treat di1* $ctrl1 miss_* i.bmonth if inrange(dif,-`bw',`bw'), cluster(birthday)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reg `x' treat di1* i.female i.border i.LBW i.preterm mage i.m_basic i.m_voc i.m_immigrant miss_* i.bmonth if inrange(dif,-`bw',`bw'), cluster(birthday)
- Effects of Peers and Rank on Cognition, Preferences, and Personality
Review of Economics and Statistics 2022 · pkg 13912
xi: reg `var' abovecutoff4 runvar runvar2 runvarint runvar2int i.cutoffid i.smth if abs(runvar)<5, cluster(bin)
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
reghdfe share_prod_mean treat_* treat if abs(dist_bound_0)<2 & (year>=2008 & year<=2019) , cluster(id) abs(year month)
- From the Fringe to the Fore: Labor Unions and Employee Compensation
Review of Economics and Statistics 2020 · pkg 13324
-
unspecified id (id, i, group...)1% · 2
2 examples in the code
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
reghdfe ln_price treat_* if abs(dist_bound_0)<2 & (year>=2008 & year<=2019), cluster(id) abs(id pmt)
- Export side effects of wars on organized crime: The case of Mexico
Journal of International Economics 2023 · pkg 102601
qui reghdfe log_grf_3_fwd_X_fypc PANwin Margin PANwinMargin /// if $BW & yr == 2007, vce(cluster r5) absorb(nofe)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe log_grf_3_fwd_X_fypc PANwin Margin PANwinMargin if Margin > -.05 & Margin <.05 & yr == 2007, vce(cluster r5) absorb(nofe)
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
-
author-named unit × timenames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp1% · 11 example in the code
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
reghdfe `graphvar' below_eb x_eb int_below_eb `BaseControl' if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe retake below_eb x_eb int_below_eb male han hui urban yingjie age if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid)
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
-
demographic group1% · 1
1 example in the code
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
qui eststo rd_`outcome'2: reghdfe `outcome' $treat $running $treat_running [aw = kernel_tri] if abs($running) < `cct_bw_`outcome'', a($fe_rd) vce(cluster $cl)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo rd_`outcome'2: reghdfe `outcome' con_win margin_con_either margin_interaction [aw = kernel_tri] if abs(margin_con_either) < `cct_bw_`outcome'', a(age …
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
-
demographic group × author-named unit × timenames the reader has no word for, commonest first:
bid,bid2,chigh_grad_enrol,codcomp_seg,ctryprod,ctryprod##i.kdep,ctryprod##i.large,cutgrp1% · 11 example in the code
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
reghdfe `graphvar' male_eb below_eb male c.x_eb##i.male c.int_below_eb##i.male han##i.male hui##i.male urban##i.male yingjie##i.male c.age##i.male if abs(x_eb)< …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe retake male_eb below_eb male c.x_eb##i.male c.int_below_eb##i.male han##i.male hui##i.male urban##i.male yingjie##i.male c.age##i.male if abs(x_eb)<=15 …
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
-
demographic group × time1% · 1
1 example in the code
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
eststo: reghdfe financial_crime fin_lit running fin_lit_running /// if abs(running)<17 & sample==1, /// absorb(bmonth_gender_race mailing_families_hhcou …
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
-
geography (other)1% · 1
1 example in the code
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
eststo: reghdfe financial_crime fin_lit running fin_lit_running /// if abs(running)<17 & sample==1, absorb(tract) cluster(running)
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
-
geography (other) × demographic group1% · 1
1 example in the code
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
reghdfe financial_crime fin_lit_2014 running_2014 fin_lit_running_2014 /// if abs(running_2014) < 12 & sample == 1, /// absorb(tract_gender_race mailing …
- Financial literacy and financial crime: A regression discontinuity approach
Journal of Financial Economics 2026 · pkg 81078
-
product × country × unspecified id (id, i, group...)1% · 1
1 example in the code
- Export side effects of wars on organized crime: The case of Mexico
Journal of International Economics 2023 · pkg 102601
reghdfe log_exp PANwin margin MarginXPANwin [aw=pop_05] if abs(margin)<0.07, absorb(product_country_fe) vce(cluster code_municipality_INEGI)
- Export side effects of wars on organized crime: The case of Mexico
Journal of International Economics 2023 · pkg 102601
Share of 190 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
rdrobust92% · 174
3 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
qui rdrobust optaget2 temp `if',
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust optaget2 temp if f2==2 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) & (optaget1==1 | optaget2==1) & dist!=0 & if f2==2 & ! …
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
eststo 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)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
reg5% · 10
3 examples in the code
- Political Turnover, Bureaucratic Turnover, and the Quality of Public Services
American Economic Review 2022 · pkg 11398
qui reg `subj'_score_indiv_`gr'_stdComb pX_dummy pX pX_pD `subj'_score_`gr'_baseline if abs(pX)<=`w0' & !mi(urban_schl), cluster(COD_MUNICIPIO)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reg `subj'_score_indiv_`gr'_stdComb pX_dummy pX pX_pD `subj'_score_`gr'_baseline if abs(pX)<=e(h_mserd) & !mi(urban_schl), cluster(COD_MUNICIPIO)
- From the Fringe to the Fore: Labor Unions and Employee Compensation
Review of Economics and Statistics 2020 · pkg 13324
reg ln_diff_wage_def i.win##(c.x_c c.x2_c) [iw=share_margin/.2] if num_votes>=20 & abs(vote_share-.5)<=.2& year[_n+1]-year==1& year[_n-1]-year==-1&abs(ln_diff_ …
- Public Health Policy at Scale: Impact of a Government-Sponsored Information Campaign on In
Review of Economics and Statistics 2024 · pkg 13861
reg `x' treat di1* if inrange(dif,-`bw',`bw'), cluster(birthday)
- Political Turnover, Bureaucratic Turnover, and the Quality of Public Services
American Economic Review 2022 · pkg 11398
-
reghdfe4% · 8
3 examples in the code
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
eststo, title(`title'): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumbe …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo, title(Optimal): qui reghdfe lncumexpWage closerTZ distTZzero100s c.closerTZ#c.distTZzero100s if `cond' & abs(distTZzero)<=`bw' [pw=weight], a(dunsnumber …
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
reghdfe ln_price treat_* treat if abs(dist_bound_0)<2 & (year>=2008 & year<=2019), cluster(id) abs(pmt pm)
- The Impact of Trade Liberalization in the Presence of Political Distortions
American Economic Journal: Applied Economics 2025 · pkg 17347
qui eststo diffdisc_`outcome'1: reghdfe `outcome' c.($treat $running $treat_running)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] if abs($runni …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo diffdisc_`outcome'1: reghdfe `outcome' c.(con_win margin_con_either margin_interaction)##c.(c.in_tf_87##post1993 c.tf_87##post1993) [aw = kernel_tri] …
- The hardships of long distance relationships: time zone proximity and the location of MNC'
Journal of International Economics 2020 · pkg 12202
-
ivreghdfe2% · 3
3 examples in the code
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
eststo: ivreghdfe log_store (log_areanew=post_treat) treat if abs(dist_bound_0)<2 & (year==2010 | year==2019), cluster(group) abs(year codcomp_seg)
- Gender Differences in Reactions to Failure in High-Stakes Competition: Evidence from the N
Journal of Political Economy Microeconomics 2024 · pkg 76551
ivreghdfe `graphvar' (retake=below_eb) x_eb int_below_eb `BaseControl' if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid) noid nofooter
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe dif_std_score (retake=below_eb) x_eb int_below_eb male han hui urban yingjie age if abs(x_eb)<=15, absorb(i.year#i.wenli) cluster(INDid HSYid) noid no …
- The Returns to STEM Programs for Less-Prepared Students
American Economic Journal: Economic Policy 2024 · pkg 89818
eststo: ivreghdfe $y rank_below rank_above (enrol_uvp=above) if abs(rank)<=30 , absorb(cutgrp) cluster(person);
- Local Retail Prices, Product Variety, and Neighborhood Change
American Economic Journal: Economic Policy 2024 · pkg 17083
-
areg1% · 1
1 example in the code
- Grade Sensitivity and the Economics Major at a Women’s College
AEA Papers and Proceedings 2021 · pkg 88975
areg `v' D score2 score2i if abs(score2)<=4 [aweight=weight] ,cluster(pidm) a(sectionfe2_both)
- Grade Sensitivity and the Economics Major at a Women’s College
AEA Papers and Proceedings 2021 · pkg 88975
-
ivreg21% · 1
1 example in the code
- Political Fragmentation and Government Stability: Evidence from Local Governments in Spain
American Economic Journal: Applied Economics 2022 · pkg 154675
eststo: ivreg2 abs_majority $rv (nparties_seats = d) $weights_reg if abs(rv)<`CCT_bw_l', cluster(id_towns)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: ivreg2 abs_majority rv rv_d (nparties_seats = d) if abs(rv)<e(h_mserd), cluster(id_towns)
- Political Fragmentation and Government Stability: Evidence from Local Governments in Spain
American Economic Journal: Applied Economics 2022 · pkg 154675
-
ivregress1% · 1
1 example in the code
- Effects of Peers and Rank on Cognition, Preferences, and Personality
Review of Economics and Statistics 2022 · pkg 13912
xi: ivregress 2sls `var' (tp runvarint_tp runvar2int_tp = abovecutoff4 runvarint runvar2int) runvar runvar2 `control' i.cutoffid i.smth if abs(runvar)<5, clust …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: ivregress 2sls `var' (tp runvarint_tp runvar2int_tp = abovecutoff4 runvarint runvar2int) runvar runvar2 age mod_edu_moth mod_edu_fath hindu private_school l …
- Effects of Peers and Rank on Cognition, Preferences, and Personality
Review of Economics and Statistics 2022 · pkg 13912
Share of 190 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.
Validation checks
-
manipulation / density test (rddensity, McCrary)47% · 122
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
rddensity dist if f1!=f2 & $if
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rddensity dist if f1!=f2 & if f2==2 & abs(dist10)<=15 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) & (optaget1==1 | optaget2==1) & if f …
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
DCdensity avgsale if avgsale>5 & avgsale<45, breakpoint(25) generate(Xj Yj r0 fhat se_fhat) graphname(DCdensity_nolog.eps) //density test developed by McCrary ( …
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
rddensity `rv' , c(0) plot nohist level(95) p(3) plot_range(-`b' `b') /// // plot_range(-10000 10000) graph_opt(ytitle(Local-Polynomial Density, margin(sm …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rddensity rv_10bn , c(0) plot nohist level(95) p(3) plot_range(-5000 5000) graph_opt(ytitle(Local-Polynomial Density, margin(small)) xtitle("Sales around Pillar … - Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
rddensity running, plot all genvars(temp)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
data-driven bandwidth (rdrobust default, bwselect(), rdbwselect)76% · 198
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
qui rdrobust optaget2 temp `if',
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui rdrobust optaget2 temp if f2==2 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) & (optaget1==1 | optaget2==1) & dist!=0 & if f2==2 & ! …
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
rdbwselect `var' avgsale, c(25) p(2) vce(cluster naics2) all kernel(uniform) covs(Dsize Dq_ind Dprof Dtang)
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
eststo 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)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
a numeric bandwidth h(#) set in some rdrobust call23% · 60
4 examples in the code
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
rdrobust `var' running , h(0.1) 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 eng_ind_p1 sop_for_iss, h(0.025 0.025) c(0.7) p(1) q(2) all
- 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(`fixed_bw') 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 v133 norm_dist, c(0) p(1) h(50000) kernel(tri) vce(cluster cluster_id) covs(year age age2 gender conc_id)
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
rdrobust vote margin, h(16.79369) b(27.43745)
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
-
triangular kernel stated27% · 69
4 examples in the code
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
lpoly log_dens dist10 if dist10<0 [fweight=antal], deg(1) bw(6.8) kernel(tri) at(dist) gen(L) nogr
- 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)
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
nbins(`nbins1' `nbins2') kernel(triangular) ci(95) genvars
- Watering Down Environmental Regulation In China
Quarterly Journal of Economics 2020 · pkg 7463
mdrd resid2_tfpop_s distance_new if neg_ind0==1, time(post03) all kernel(tri)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
-
RD plot (rdplot)43% · 112
4 examples in the code
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
rdplot q_ind_pre avgsale, c(25) p(`power') h(`win') nbins(`numbin') ci(95) /// graph_options($graphopts ytitle(Market-to-book) name(fig_mktbk_pre, replace) …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdplot q_ind_pre avgsale, c(25) p(2) h(15) nbins(10) ci(95) graph_options(legend(pos(6) col(2) region(lstyle(none))) xtitle(Average Sales) xlabel(10 20 25 30 40 …
- Measuring the Expected Effects of the Global Tax Reform
Review of Financial Studies 2023 · pkg 140
rdplot return_stock `rv' if date_8oct ==1 & inrange(`rv',-`bw',`bw') , p(1) /// nbins(100 100) /// //{stSans} graph_options( xtitle("Sales around Pillar …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):rdplot return_stock rv_10bn if date_8oct ==1 & inrange(rv_10bn,-5000,5000) , p(1) graph_options( xtitle("Sales around Pillar 1 Size Threshold (in USD million)", … - Housing Consumption and Investment: Evidence from Shared Equity Mortgages
Review of Financial Studies 2022 · pkg 206
rdplot age purchaseprice, c(601) p(1) nbins(5 5) ci(95) /// graph_options( /// ytitle("Age", size(large)) xtitle("Purchase Price", size(large)) … - Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
rdplot eng_ind_p1 sop_for_iss if(sop_for_iss>=0.675 & sop_for_iss<=0.725), h(0.025 0.025) c(0.7) p(1) q(2) ci(95) shade play(rd_graph) graph_options(legend(off) …
- How Does Removing the Tax Benefits of Debt Affect Firms? Evidence from the 2017 U.S. Tax R
Review of Financial Studies 2025 · pkg 113
-
multiple-testing correction (FDR, Romano-Wolf, ...)7% · 18
4 examples in the code
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
capture which wyoung
- Polling Place Location and the Costs of Voting
American Economic Journal: Economic Policy 2026 · pkg 11713
capture which wyoung
- Breaking the Cycle? Education and the Intergenerational Transmission of Violence
Review of Economics and Statistics 2020 · pkg 13897
cap program drop rwolf2
- Effects of Peers and Rank on Cognition, Preferences, and Personality
Review of Economics and Statistics 2022 · pkg 13912
gen fdr_temp1 = `qval_adj'*rank/`totalpvals'
- A Precinct Too Far: Turnout and Voting Costs
American Economic Journal: Applied Economics 2020 · pkg 3597
Share of 260 packages in the cell. 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.