Difference-in-differences
This design across fields
| Field | packages | main clustering (of those that cluster) | winsorize / trim | checks |
|---|---|---|---|---|
| All fields | 498 | author-named unit 36%; unspecified id (id, i, group...) 12%; county / city / district 12%; state / province 11% (n=385) | 30% | pre-trend test 27%; event-time 5% |
| Finance | 80 | firm 20%; author-named unit 14%; unspecified id (id, i, group...) 12%; state / province 11% (n=66) | 61% | pre-trend test 10%; event-time 9% |
| Accounting | 23 | author-named unit 18%; firm 18%; industry 12%; industry × time 12% (n=17) | 74% | pre-trend test 0%; event-time 4% |
| Economics | 393 | author-named unit 42%; county / city / district 15%; unspecified id (id, i, group...) 13%; state / province 11% (n=301) | 21% | pre-trend test 31%; event-time 5% |
| Other fields | 2 thin | author-named unit 100% (n=1) | 0% | pre-trend test 50%; event-time 0% |
The typical package, and three that differ
Typical = the package that makes the most of this cell's modal choices
(reghdfe, clustered by county / city / district, county / city / district + time fixed effects,
no winsorizing, drops missing rows) —
it matches 6 of 6. Each contrast takes the second most common choice on one dimension.
- commands
csdid,reghdfe- clusters by
- county / city / district
- fixed effects
- county / city / district + time; county / city / district × author-named unit + author-named unit × time
- outliers
- no winsorizing / trimming found
- missing values
- replace missing with zero (imputation); drop rows with missing values; interpolate missing values; replace missing with another value (imputation)
- sample years
- 1922–1940 (as on the package page)
- checks
- event-time; event-study plot; heterogeneity-robust estimator
- commands
att_gt,reghdfe- clusters by
- state / province
- fixed effects
- state / province + author-named unit + time
- outliers
- no winsorizing / trimming found
- missing values
- replace missing with zero (imputation); drop rows with missing values
- sample years
- 1984–2013 (as on the package page)
- checks
- heterogeneity-robust estimator
- commands
eventstudyinteract,reghdfe- clusters by
- state / province
- fixed effects
- state / province + time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; interpolate missing values; replace missing with another value (imputation); replace missing with zero (imputation)
- sample years
- 1959–1980 (as on the package page)
- checks
- event-time; heterogeneity-robust estimator
- commands
did_imputation,areg- clusters by
- author-named unit; county / city / district; state / province
- fixed effects
- county / city / district + time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with zero (imputation)
- sample years
- 2005–… (as on the package page)
- checks
- heterogeneity-robust estimator
Sample screens
-
exclude financials1% · 4
4 examples in the code
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
drop if sic>=6000 & sic <6800
- The Unintended Impact of R&D Tax Credits on Innovative Search
Review of Economics and Statistics 2024 · pkg 13800
drop if sic >= 6000 & sic <= 6999 // drop financials
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
drop if substr(naics2017, 1, 2) == "52"
- Credit Conditions when Lenders are Commonly Owned
Journal of the European Economic Association 2026 · pkg 19316
drop if sic4 >= 6000 & sic4 <= 6999 // financials
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
-
keep only manufacturing1% · 3
3 examples in the code
- Who Loses under Cap-and-Trade Programs? The Labor Market Effects of the NOx Budget Trading
Review of Economics and Statistics 2018 · pkg 13673
keep if naics1=="3"
- The cleanup of US manufacturing through pollution offshoring
Journal of International Economics 2025 · pkg 14391
keep if sic4>=2000 & sic4<=3999
- Propagation And Amplification Of Local Productivity Spillovers
Econometrica 2024 · pkg 18640
keep if (substr(sic,1,1)=="2" | substr(sic,1,1)=="3" )
- Who Loses under Cap-and-Trade Programs? The Labor Market Effects of the NOx Budget Trading
Review of Economics and Statistics 2018 · pkg 13673
-
common shares only (shrcd 10/11)1% · 2
2 examples in the code
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
drop if shrcd > 11
- Credit Conditions when Lenders are Commonly Owned
Journal of the European Economic Association 2026 · pkg 19316
keep if shrcd==10 | shrcd==11
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
-
exclude public administration / unclassified1% · 2
2 examples in the code
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
drop if substr(naics2017, 1, 2) == "92"
- Credit Conditions when Lenders are Commonly Owned
Journal of the European Economic Association 2026 · pkg 19316
drop if sic4 > 8999 // quasi-public
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
-
exclude utilities1% · 2
2 examples in the code
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
drop if substr(naics2017, 1, 2) == "22"
- Credit Conditions when Lenders are Commonly Owned
Journal of the European Economic Association 2026 · pkg 19316
drop if sic4 >= 4900 & sic4 <= 4999 // utilities
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
-
NYSE / AMEX / Nasdaq only (exchcd 1-3)0% · 1
1 example in the code
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
keep if inlist(exchcd,1,2,3) == 1
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
Share of 393 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
83 of 393 packages (21%) winsorize or trim something: 76 winsorize, 17 trim, 13 by group (e.g. by year).
-
winsorize 1/9952% · 43
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
winsor ch_three_g_nw, gen(ch_three_g) p(0.01)
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
winsor salaire_r, p(0.01) gen(salaire_r_w)
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
winsor pce_new, p(0.01) gen(pce_new_w)
- Subways and Road Congestion
American Economic Journal: Applied Economics 2021 · pkg 11503
replace CI_res = p99 if CI_res > p99
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
winsorize none/9918% · 15
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
replace std_add_exp = `r(p99)' if std_add_exp >= `r(p99)' & !mi(std_add_exp)
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
winsor2 oe_total, replace cuts(0 99)
- Subways and Road Congestion
American Economic Journal: Applied Economics 2021 · pkg 11503
replace mileage = `r(p99)' if mileage >= `r(p99)'
- Spillover, Efficiency, and Equity Effects of Regional Firm Subsidies
American Economic Journal: Economic Policy 2025 · pkg 11585
replace wage_imp_int = $maxwage if wage_imp_int > $maxwage & !missing(wage_imp_int)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):replace wage_imp_int = 10 * r(p99) if wage_imp_int > 10 * r(p99) & !missing(wage_imp_int)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
winsorize 5/9514% · 12
4 examples in the code
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
winsor2 ind_tau, replace cuts(5 95)
- Merchants of Death: The Effect of Credit Supply Shocks on Hospital Outcomes
American Economic Review 2024 · pkg 17240
winsor2 ta_mil, cuts(5 95)
- Financial Technology Adoption: Network Externalities of Cashless Payments in Mexico
American Economic Review 2024 · pkg 17252
winsorize( outcome = var, newvar = str_c(var, "_w5"), w = 5, by = c("localidad", "year", "subsector"), highonly = FALSE, # because profits can go nega … - Does Entry Remedy Collusion? Evidence from the Generic Prescription Drug Cartel
American Economic Review 2025 · pkg 17317
winsor scale_factor,p(.05) g(winsor_scale_factor)
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
-
trim 1/9912% · 10
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
winsor2 age_diff , replace trim cuts(1 99)
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
winsor2 corr_x corr_gdp_x, cuts(1 99) trim replace
- Entry Deregulation, Market Turnover, and Efficiency: China's Business Registration Reform
Review of Economics and Statistics 2025 · pkg 12953
winsor2 investment, cuts(1 99) trim replace
- Managers’ Productivity and Recruitment in the Public Sector
American Economic Journal: Economic Policy 2024 · pkg 17257
keep if Nclase>r(p1)&Nclase<r(p99)
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
winsorize 1/99 by group8% · 7
4 examples in the code
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
winsor2 emp, replace cuts(1 99) by(fyear)
- The Impact of the COVID-19 Pandemic on Consumption: Learning from High-Frequency Transacti
AEA Papers and Proceedings 2021 · pkg 16280
winsor2 damount,cuts(1 99) by(cityid) replace
- Fiscal Rules, Austerity in Public Administration, and Political Accountability: Evidence f
Journal of the European Economic Association 2026 · pkg 19112
winsor2 polio dpt bcg hep_b hib, by(year) replace
- Accident-Induced Absence from Work and Wage Growth
Journal of Labor Economics 2025 · pkg 39458
winsor2 tfp_wr, cuts(1 99) by(ev)
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
-
winsorize none/958% · 7
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)
- Subways and Road Congestion
American Economic Journal: Applied Economics 2021 · pkg 11503
replace mileage = `r(p95)' if mileage > `r(p95)'
- Corruption as a Local Advantage: Evidence from the Indigenization of Nigerian Oil
American Economic Review 2025 · pkg 15452
replace val_m2 = r(p95) if val_m2>r(p95) & !mi(val_m2)
- Health Insurance Design Meets Saving Incentives: Consumer Responses to Complex Contracts
American Economic Journal: Applied Economics 2022 · pkg 16711
replace tspend_wins95=`r(p95)' if tspend_wins95>`r(p95)' & tspend_wins95!=.
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
-
winsorize 0.5/99.55% · 4
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
winsor vote_incumbent_resid, gen(vote_incumbent_net) p(0.005)
- Managers’ Productivity and Recruitment in the Public Sector
American Economic Journal: Economic Policy 2024 · pkg 17257
winsor2 All, c(.5 99.5) replace
- Partisan Fertility and Presidential Elections
American Economic Review: Insights 2022 · pkg 122440
winsor cnty_laborforce_dlmp1, gen(cnty_laborforce) p(0.005)
- The Unintended Consequences of Home-Buying Restriction in China
Review of Economics and Statistics 2024 · pkg 159408
winsor2 dvrcert_rgh rstorrt_rgh dvrcert_rgh_robs rstorrt_rgh_robs mrgert_rgh /// ln_rlgdppc scnd_gdp open ln_hsprice ln_cnsmptn ln_totpop sex_rto_hjcz ln_av …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
winsorize 10/904% · 3
3 examples in the code
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
winsor2 coef, cuts(10 90) replace
- Guaranteed Employment in Rural India: Intra-Household Labor and Resource Allocation Conseq
American Economic Journal: Economic Policy 2026 · pkg 17516
replace conca = r(p10) if conca < r(p10)
- Impact evaluations in data-scarce environments: The case of stress-tolerant rice varieties
Journal of Development Economics 2026 · pkg 107960
winsor2 area_ha yield_kgha lny, suffix(_w) cut(10 90)
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
Share of the 83 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values81% · 320
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
drop if N_f == .
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
drop if epaid_fares_usd==. & cash_fares_usd==.
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
drop if evo_score==.
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
drop if increase==.
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
replace missing with another value (imputation)64% · 251
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
replace ama_member_share = ama_member_share[_n-1] if mi(ama_member_share)
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
replace share_cash=l.share_cash if share_cash==.
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
replace evo_approval= evolved1_recode if evo_approval==.
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
replace fotn_score = (F.fotn_score + L.fotn_score)/2 if missing(fotn_score)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
replace missing with zero (imputation)64% · 250
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
replace ratio_cm = 0 if ratio_cm == .
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
replace coef_2 = 0 if mi(coef_2)
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
replace mean_trips=0 if mean_trips==.
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
replace first=0 if first==.
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
interpolate missing values29% · 115
4 examples in the code
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
tsfill, full
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
tsfill
- The Role of the Ask Gap in Gender Pay Inequality
Quarterly Journal of Economics 2024 · pkg 7524
tsfill // filling in all other batchids until the maximum within sample
- The Evolution of Access to Public Accommodations in the United States
Quarterly Journal of Economics 2023 · pkg 7536
tsfill
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
Share of 393 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 estimation84% · 301
- default iid only13% · 45
- robust only (never clusters)3% · 12
Of the 358 packages with a model that shows the design.
Main clustering level
-
author-named unitnames the reader has no word for, commonest first:
agency,cuid,pis,regno,study_id,ac,ac_nic,address42% · 1264 examples in the code
- Ban the Box, Criminal Records, and Racial Discrimination: A Field Experiment
Quarterly Journal of Economics 2018 · pkg 7473
reg response pre_white white pre ged empgap if remover==0 & balanced==1 , cl(chain_id)
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) /// covariates(${firm} ${ceo} postchange) absorb(eventid year) vce(c …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) covariates(firmage firmage2 gender age age2 yrinco i.education postchang …
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
reg p treat after top5 treatafter top5after treattop5 treattop5after,cluster(billid)
- The Value of Information in Competitive Markets: Evidence from Small and Medium-Sized Ente
Journal of Political Economy 2025 · pkg 7687
csdid resid, cluster(merchant_fuc) time(t) gvar(tgroup) method(dripw) notyet agg(simple)
- Ban the Box, Criminal Records, and Racial Discrimination: A Field Experiment
Quarterly Journal of Economics 2018 · pkg 7473
-
county / city / district15% · 45
4 examples in the code
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
reghdfe rollout rotate_last_year c.rotate_incentive_shock#c.rotate_last_year#c.positive c.rotate_incentive_shock#c.rotate_last_year#c.negative, absorb(i.exp_lst …
- Ambulance Taxis: The Impact of Regulation and Litigation on Health-Care Fraud
Journal of Political Economy 2025 · pkg 7764
reghdfe lfirm ib99.reltime_civ2 postpa postcrim, absorb(district month) vce(cluster district) // Used in Figure A18b
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
ggiplot(list("Proposed Revocations" = feols(MME_PC ~ i(rel_year, treat, ref = -1) | county_fips + state^year, cluste … - Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
drdid crude_rate_20_64 `covs', /// ivar(county_code) time(year) tr(Treat) /// all /// pscoretrim(0.995) /// wboot(reps(25000) rseed(2024 …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):drdid crude_rate_20_64 perc_female perc_white perc_hispanic unemp_rate_pc poverty_rate median_income_k, ivar(county_code) time(year) tr(Treat) all pscoretrim(0. …
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
-
unspecified id (id, i, group...)13% · 39
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eventstudyinteract ln_citypop /// cmH /// cmH_P* /// [aweight = ln_citypop_nm] , absorb(i.i##i.t i.year i.i##i.cmH) vce(cluster i) /// cohort(Ei … - The Role of the Ask Gap in Gender Pay Inequality
Quarterly Journal of Economics 2024 · pkg 7524
reg logs_salary i.female after i.female_after $expcontrols if !mi(d_salary), vce(cluster sid)
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
quietly: xtdidregress (`variable' ``regressorset'') (treat), group(id) time(year) vce(cluster id)
- The Unintended Consequences of Infrastructure Development
Review of Economics and Statistics 2026 · pkg 13680
did_multiplegt `y' i t D, robust_dynamic breps(100) cluster(i) dynamic(7) placebo(5)
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
state / province11% · 33
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
reghdfe share_enroll $design_controls_state c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe share_enroll personal_income union_st c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
csdid lifesciences_conv if less_evolution==1 & evo_score<0.95 & evo_score>0.64, time(highschoolentryyear) notyet gvar(first_treat) agg(event) method(dripw) rsee …
- Dynamic Pricing Regulation and Welfare in Insurance Markets
Journal of Political Economy 2025 · pkg 7777
did_imputation `depvar' state_id year reg_year_alt, fe(state_id year) cluster(state_id) hor(0/2) pretrends(2) minn(0)
- Why Is Workplace Sexual Harassment Underreported? The Value of Outside Options amid the Th
American Economic Review 2026 · pkg 11708
did_imputation log_c_any st mdate treated if Sexual_Harassment_indicator==1 & mdate>=582, autosample cluster(st) fe(st mdate)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
person3% · 8
4 examples in the code
- Family Support During Hard Times: Dynamics of Intergenerational Exchange after Adverse Eve
Review of Economics and Statistics 2025 · pkg 14036
eststo bat_pk_`event': did_imputation at_pk hhidpn wave firstevent [w=weight], `didopt' saveweights
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo bat_pk_`event': did_imputation at_pk hhidpn wave firstevent [w=weight], autosample horizons(0/1) cluster(hhidpn) saveweights
- Breaking Bad: How Health Shocks Prompt Crime
American Economic Journal: Applied Economics 2026 · pkg 17443
did_multiplegt anycrime_co_dummy cohort year postcancer , controls(inhospital inprison) breps(100) robust_dynamic placebo(4) longdiff_placebo dynamic(8) cluste …
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects
Journal of Econometrics 2021 · pkg 18011
eventstudyinteract oop_spend evt_time_2-evt_time_3 evt_time_5-evt_time_7 /// if ever_hospitalized & wave < 11 , cohort(wave_hosp) absorb(hhidpn wave) /// … - Sharing News Left and Right: Frictions and Misinformation on Twitter
The Economic Journal 2024 · pkg 18541
eststo: reghdfe ratio1 post_Hfact post_bias01 if timeWindow_preE2020 & high_fact!=., abs(userid date2) cl(userid)
- Family Support During Hard Times: Dynamics of Intergenerational Exchange after Adverse Eve
Review of Economics and Statistics 2025 · pkg 14036
-
country1% · 4
4 examples in the code
- Effective Health Aid: Evidence from Gavi’s Vaccine Program
American Economic Journal: Economic Policy 2025 · pkg 11596
did_imputation coverage countrydisease cohortyear `treatmentvar', autosample cluster(countryid) fe(countrydisease cohortdisease countrycohort);
- Income, Democracy, and Growth: Reconciling Evidence and Theory
The Economic Journal 2025 · pkg 19144
eststo model_4: xtreg revevent l.y l.dem l.post l.dem_post yy*, fe r cluster(wbcode2)
- Maternal Mortality and Women’s Political Power
Journal of the European Economic Association 2023 · pkg 38820
did_multiplegt lnMMRt1 ccode year quotaRes, placebo(10) dynamic(10) breps(50)
- The Political Scar Of Epidemics
The Economic Journal 2024 · pkg 81240
reghdfe `y' epidemic_affected_gen18 l1epidemic_affected log_income_4 log_income_4_sq [aweight=wgt] if all==1, absorb(country_id year age f_education f_male f_ur …
- Effective Health Aid: Evidence from Gavi’s Vaccine Program
American Economic Journal: Economic Policy 2025 · pkg 11596
-
firm1% · 4
4 examples in the code
- The Economic Effects of Mafia: Firm Level Evidence
American Economic Review 2022 · pkg 11702
did_multiplegt F id_firm anno ndr_cal, placebo(3) breps(200) cluster(id_firm)
- Health Effects of Downsizing Survival
Review of Economics and Statistics 2025 · pkg 14054
reg bg_tagessatz i.treated##i.post $controls, vce(cluster benr)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reg bg_tagessatz i.treated##i.post pe_age pe_tenure, vce(cluster benr)
- Burn now or never? Climate policy exposure and investment of fossil fuel firms
Journal of International Economics 2026 · pkg 96970
qui eststo m2: did_imputation firm_investment_ratio gvkey year Ei, /// fe(gvkey year) cluster(gvkey) autosample maxit(400) - Unemployment Insurance, Starting Salaries, and Jobs: Evidence from Multi-state Firms
Review of Economic Studies 2026 · pkg 254616
did_multiplegt lwage estab_job_ year treat, /// covariances average_effect robust_dynamic trends_nonparam(firm) /// dynamic(5) placebo(2) breps(100) see …
- The Economic Effects of Mafia: Firm Level Evidence
American Economic Review 2022 · pkg 11702
-
household1% · 4
4 examples in the code
- Energy Efficiency and Electricity Reliability
Review of Economics and Statistics 2021 · pkg 13276
eststo: xtreg elec TGH_Tpost TGH_Spost TGL_Tpost TGL_Spost TGH_T TGH_S TGL_T TGL_S post s7_1_5_1_b hdd $bill i.hh_id i.time , vce(cl hh_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: xtreg elec TGH_Tpost TGH_Spost TGL_Tpost TGL_Spost TGH_T TGH_S TGL_T TGL_S post s7_1_5_1_b hdd collect_days i.hh_id i.time , vce(cl hh_id)
- Sex Workers, Stigma, and Self-Image: Evidence from Kolkata Brothels
Review of Economics and Statistics 2022 · pkg 13326
eststo: reg index1 treat post treatpost areadum1-areadum2, cl(hhid)
- Revisiting Event-Study Designs: Robust and Efficient Estimation
Review of Economic Studies 2024 · pkg 18413
eventstudyinteract spending L*event F*event [aw=projection_factor], vce(cluster hhid) absorb(hhid pperiod) cohort(Ei_mi) control_cohort(lastcohort)
- Cash Transfers, Food Prices, and Nutrition Impacts on Ineligible Children
Review of Economics and Statistics 2023 · pkg 159370
xi: areg `X' treated after treated_after if sample==2, cluster(hh_id) absorb(munic)
- Energy Efficiency and Electricity Reliability
Review of Economics and Statistics 2021 · pkg 13276
-
bank1% · 3
3 examples in the code
- Spillovers of funding dry-ups
Journal of International Economics 2022 · pkg 14322
eststo model1: quietly reghdfe spread_USD nonMMF3 post2014_nonMMF3 year_end year_end_nonMMF notional_log maturitydays total_assets_log Leverage NII_totRev logCD …
- Consumer Credit and the Incidence of Tariffs: Evidence from the Auto Industry
American Economic Review 2026 · pkg 17449
eststo Table3_1: reghdfe Interest captive after CaptiveXAfter, absorb(yr_qtr#make_model#New yr_qtr#grp_state yr_qtr#Income_Bin25 yr_qtr#Credit_FE10 lender) clus …
- COVID-19 and Its Impact on Minority-Owned Banks
AEA Papers and Proceedings 2022 · pkg 154849
qui eststo: reg `y' i.treated##i.post, cluster(cert)
- Spillovers of funding dry-ups
Journal of International Economics 2022 · pkg 14322
-
region / MSA / CZ1% · 3
3 examples in the code
- Television and Academic Achievement: Evidence from the Digital Television Transition in th
The Economic Journal 2024 · pkg 18720
qui eventstudyinteract EXTPC415_ eventth1-eventth3 eventth5-eventth9 if YEAR < 2013, cohort(year_implementation) control_cohort(last_implemented) absorb(i.REGIO …
- Tourism growth, education decline: Evidence from China’s 5A attraction expansion
Journal of Urban Economics 2025 · pkg 39519
quiet:eventstudyinteract senior $event , cohort(year_5a_16) control_cohort(never_union) absorb(region M35) vce(cluster region)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quiet:eventstudyinteract senior pre7 pre6 pre5 pre4 pre3 pre2 pre1 post0 post1 post2 post3 post4 post5 , cohort(year_5a_16) control_cohort(never_union) absorb(r …
- Dynamic Impacts of Lockdown on Domestic Violence: Evidence from Multiple Policy Shifts in
Review of Economics and Statistics 2026 · pkg 159940
did_multiplegt ingresspc Region t quarantineExit if qstart!=.,
- Television and Academic Achievement: Evidence from the Digital Television Transition in th
The Economic Journal 2024 · pkg 18720
Share of the 301 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
246 of 358 packages absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).
Main fixed-effect set
-
author-named unit + timenames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event217% · 424 examples in the code
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) /// covariates(${firm} ${ceo} postchange) absorb(eventid year) vce(c …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) covariates(firmage firmage2 gender age age2 yrinco i.education postchang …
- The Global Race for Talent: Brain Drain, Knowledge Transfer, and Growth
Quarterly Journal of Economics 2025 · pkg 7646
eventstudyinteract pat_year tau_*, vce(cluster coaut_ year) absorb(codinv year) /// cohort(first_migration) control_cohort(controlcohort) covariates(i.exp )
- Sweeping up Gangs: The Effects of Tough-on-Crime Policies from a Network Approach
American Economic Journal: Economic Policy 2026 · pkg 11714
qui: eventstudyinteract r_`x' L*event F*event if sample!=., vce(cluster idarea) absorb(idarea pdate) cohort(ei) control_cohort(never)
- Survivors’ Mental Health and the Protective Role of Income Stability
American Economic Review: Insights 2026 · pkg 11753
ivreghdfe $y i.post i.post#i.treat (endogen2 = instrument3 instrument32 ins4) tp_female tp_child_b18_d tp_child_a18_d tp_child_missing tp_ln_inc $controls1 if …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe h_psycho i.post i.post#i.treat (endogen2 = instrument3 instrument32 ins4) tp_female tp_child_b18_d tp_child_a18_d tp_child_missing tp_ln_inc i.year c. …
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
-
author-named unitnames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event215% · 364 examples in the code
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
areg p treat treattop5 treatafter treattop5after after top5 top5after totaldish lbill sited2-sited4, absorb(name) cluster(billid)
- Social Media and Mental Health
American Economic Review 2022 · pkg 11258
eventstudyinteract eq_index_mh_all g_*, cohort(time_treated_sa) control_cohort(never_treat) absorb(i.survey_wave i.fbexpgrp) vce(cluster uni_id)
- Women's political participation and intrahousehold empowerment: Evidence from the Egyptian
Journal of Development Economics 2019 · pkg 12168
quietly xi: areg ibp post_group post $xlist $xcoh $xpost $xpostcoh, cluster(ID_2) absorb(ID_2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quietly xi: areg ibp post_group post poorest middle richer richest urb nb_child primary secondary higher age age_husband husband_work birthcoh_2 birthcoh_3 post …
- The Market for High-Quality Medicine: Retail Chain Entry and Drug Quality in India
Review of Economics and Statistics 2019 · pkg 13332
areg pass post post_trt, cl(mktid) ab(mkt_id), if $urc & ln_ppt~=.
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg pass post post_trt, cl(mktid) ab(mkt_id), if tag_unitround==1 & medplus~=1 & ln_ppt~=.
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
-
county / city / district + time7% · 18
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
reghdfe pr_component treatment i.year $ind_controls $income_controls fotp_score if $sample4reg , absorb(i.districtid) clu(districtid cy)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe pr_component treatment i.year i.urban_category female married divorced widow children age agesq second_educ compl_educ i.EMP_UNEMP_missing income_contro …
- Ambulance Taxis: The Impact of Regulation and Litigation on Health-Care Fraud
Journal of Political Economy 2025 · pkg 7764
reghdfe lfirm ib99.reltime_civ2 postpa postcrim, absorb(district month) vce(cluster district) // Used in Figure A18b
- Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
mod2 <- feols(crude_rate_20_64 ~ Treat:Post | county_code + year, data = short_data, cluster = ~county_code)
- Democracy and Firm Productivity: Evidence from Indonesia
Review of Economics and Statistics 2023 · pkg 13323
reghdfe count_law post, absorb(district year) cluster(district)
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
unspecified id (id, i, group...) + time7% · 18
4 examples in the code
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
reghdfe `variable' i.hci##ib(1972).year, /// absorb( id year ) /// vce(cluster id) - The Unintended Consequences of Infrastructure Development
Review of Economics and Statistics 2026 · pkg 13680
eventstudyinteract `y' L*event F*event, vce(cluster i) absorb(i t) cohort(Ei) control_cohort(lastcohort)
- Does Discipline Decrease Police Misconduct? Evidence from Chicago Civilian Allegations
American Economic Journal: Applied Economics 2023 · pkg 16980
eststo REG`i': reghdfe daysworked`i' post treated postXtreated i.quarter i.unit , absorb(ID) vce(cluster unit quarter ID)
- Strengthening State Capacity: Civil Service Reform and Public Sector Performance during th
American Economic Review 2024 · pkg 17193
eventstudyinteract log_incorrect_slips_errors d_around1 d_around2 d_around3 d_around5-d_around13 , cohort(year_start) control_cohort(never_treat) covariates(i.s …
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
-
state / province + time5% · 13
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
reghdfe share_enroll $design_controls_state c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe share_enroll personal_income union_st c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reg evo_approval_conv pre78 pre56 pre34 zero post01 post23 post45 i.surveyyear i.state16 i.cohort if less_evolution==1, vce(cluster state16)
- Dynamic Pricing Regulation and Welfare in Insurance Markets
Journal of Political Economy 2025 · pkg 7777
reghdfe `depvar' PostReg2 i.year if reg_year<3000, a(state_id) cluster(state_id)
- Medical Worker Migration and Origin-Country Human Capital: Evidence from U.S. Visa Policy
Review of Economics and Statistics 2024 · pkg 13652
xi: reg pass_rate_grad post2000_high i.year i.provcode $controls_yr if year>=1991&year<=2013 , noomit cl(province);
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: reg pass_rate_grad post2000_high i.year i.provcode emp_f_2564_90_yr* emp_m_2564_90_yr* female_90_yr* age_90_yr* nurse_cen_pc90_yr* if year>=1991&year<=2013 …
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
time4% · 10
4 examples in the code
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
reg logemp i.treated i.post i.treated##i.post i.year,ro
- The Long-Run Effects of Individual Debt Relief
Review of Economics and Statistics 2024 · pkg 13695
csdid outcome i.pyear, long2 ivar(pnr) time(time) gvar(treatment_year)
- The Role of Withholding in the Self-Enforcement of a Value-Added Tax: Evidence from Pakist
Review of Economics and Statistics 2022 · pkg 13779
qui reg lnsales i.period treat after treat_after, cluster(regno)
- Bound by Bostock: The effect of policies on attitudes
Economics Letters 2022 · pkg 15278
regress lgbt_fav_bin i.post i.treatment did i.state_factor i.week [pweight=weight], vce(cluster state)
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
-
author-named unit + author-named unit × timenames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event22% · 54 examples in the code
- Violence and black markets: Evidence from the Niger Delta conflict
Journal of Development Economics 2026 · pkg 14475
eststo est2 : reghdfe oil_theft c.(treat)#c.(post kcrude_petro), cl(vill_id) absorb(vill_id year##c.(`village_controls'))
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo est2 : reghdfe oil_theft c.(treat)#c.(post kcrude_petro), cl(vill_id) absorb(vill_id year##c.(dist_field_km dist_pl_km dist_capital_km dist_niger_km dist …
- Down to the Wire: Leveraging Technology to Improve Electric Utility Cost Recovery
American Economic Journal: Applied Economics 2025 · pkg 17394
eventstudyinteract Total F_* L_* , cohort(ABC_month) control_cohort(neverABC) /// absorb(FeederID IBCcode#date_monthly) vce(cluster FeederID) - Fiscal Rules, Austerity in Public Administration, and Political Accountability: Evidence f
Journal of the European Economic Association 2026 · pkg 19112
reghdfe `yvar' TX_Affected*, a(${fe_reg} ${covs}) nocons vce(${vce_reg})As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `yvar' TX_Affected*, a(i.year#i.coddep codmun d_establecimiento_educ_cov#i.year d_agricultural_bank_96_cov#i.year d_pard_cov#i.year c.altura_cov#i.year …
- Undergraduate Gender Diversity and the Direction of Scientific Research
American Economic Review 2025 · pkg 155563
eventstudyinteract Y L0event L1event L2event L3event L4event L5event L6event L7event L8event L9event L10event L11event L12event L13event L14event L15event_after …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract Y L0event L1event L2event L3event L4event L5event L6event L7event L8event L9event L10event L11event L12event L13event L14event L15event_after …
- Violence and black markets: Evidence from the Niger Delta conflict
Journal of Development Economics 2026 · pkg 14475
-
firm + time2% · 5
4 examples in the code
- The Unintended Impact of R&D Tax Credits on Innovative Search
Review of Economics and Statistics 2024 · pkg 13800
eventstudyinteract xrd_d g_5 g_4 g_3 g_2 g0 g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g_1 if ((year<=first_taxB+15 & year>=first_taxB-5) | first_ta …
- Downward Revision of Investment Decisions after Corporate Tax Hikes
American Economic Journal: Economic Policy 2024 · pkg 17265
eventstudyinteract down_dummy g_2 g_1 g0-g2 , cohort(t_group_het) control_cohort(never_group) absorb(i.plantnum i.year)
- Technology Transfer and Early Industrial Development: Evidence from the Sino-Soviet Allian
Review of Economic Studies 2026 · pkg 19377
eventstudyinteract `variable' `lags' `leads', /// cohort(treatment_year) /// control_cohort(never_treated) /// abso …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract `variable' g_m5 g_m4 g_m3 g_m2 g_0 g_1 g_2 g_3 g_4 g_5 g_6 g_7 g_8 g_9 g_10 g_11 g_12 g_13 g_14 g_15 g_16 g_17 g_18 g_19 g_20 g_21 g_22 g_23 …
- Burn now or never? Climate policy exposure and investment of fossil fuel firms
Journal of International Economics 2026 · pkg 96970
qui eststo m1: reghdfe firm_investment_ratio treated $firm_controls, /// absorb(gvkey year) vce(cluster gvkey)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo m1: reghdfe firm_investment_ratio treated log_total_assets roa debt_to_equity asset_tangibility, absorb(gvkey year) vce(cluster gvkey)
- The Unintended Impact of R&D Tax Credits on Innovative Search
Review of Economics and Statistics 2024 · pkg 13800
-
author-named unit + author-named unit × time + timenames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event21% · 33 examples in the code
- Migration crisis in the local news: Evidence from the French–Italian border
Journal of Urban Economics 2025 · pkg 19415
eststo reg0FE:reghdfe coverage $TREATc $contr5 $geocontr , absorb( $ABS ) vce(cluster $CLUS ) resid
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo reg0FE:reghdfe coverage inter1 lpop pop_65_share pop_dens limmig liscritti lcanc linc_cap lCrimeTOT wordcount ltotnews prox_munic_elec c.lat#1.post c.lng …
- Stimulating Collaborations: Evidence from a Research Cluster Policy
Review of Economics and Statistics 2025 · pkg 39809
qui eststo: reghdfe nb_collab_same_labex treat2 if id_year==1 & criterion_grade==1 [aweight=cem_weights], a( i.discipline#i.year age_in_2010#i.year femal …
- The Economic Origins of Government
American Economic Review 2023 · pkg 155523
reghdfe l_settl tr_all_move_5000 if experiment_period==8 /// $sample_restr , cluster($cluster_level) absorb($baseline_FE)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe l_settl tr_all_move_5000 if experiment_period==8 & treated_closer!=1 & surveyed==1 , cluster(grid_cell_no) absorb(grid_cell_no period period#i.dataset_i …
- Migration crisis in the local news: Evidence from the French–Italian border
Journal of Urban Economics 2025 · pkg 19415
-
county / city / district + author-named unit + timenames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event21% · 33 examples in the code
- Organized crime, local politicians, and state capacity
Journal of Development Economics 2026 · pkg 14893
eventstudyinteract `x' lag_6 lag_5 lag_4 lag_3 lag_2 lag_1 lead_0 lead_1 lead_2 lead_3 lead_4 lead_5 lead_6 if year>1994 & sample==1 &(id_statemuni!=28022&id …
- The Impact of the COVID-19 Pandemic on Consumption: Learning from High-Frequency Transacti
AEA Papers and Proceedings 2021 · pkg 16280
reghdfe damount treat policy*,a(cityid gap dow) cluster(cityid)
- Rules, Discretion, and Corruption in Procurement: Evidence from Italian Government Contrac
Journal of Political Economy Microeconomics 2025 · pkg 76590
eststo: reghdfe criminal_firm_group`i' treated##post $importo_iniziale $if, absorb($fe) cluster($cl)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe criminal_firm_group`i' treated##post log_importo_iniziale if importo_iniziale > 500000, absorb(id_city year maintainance urgency category_type) …
- Organized crime, local politicians, and state capacity
Journal of Development Economics 2026 · pkg 14893
Share of the 246 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
time49% · 176
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eventstudyinteract ln_citypop /// cmH /// cmH_P* /// [aweight = ln_citypop_nm] , absorb(i.i##i.t i.year i.i##i.cmH) vce(cluster i) /// cohort(Ei … - Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
reghdfe share_enroll $design_controls_state c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe share_enroll personal_income union_st c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 $controls_indiv if less_evolution==1, absorb(bpl highschoolentryyear year) cluster(bpl) no …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 female black asian native other multiple hispanic if less_evolution==1, absorb(bpl highsch …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
reghdfe pr_component treatment i.year $ind_controls $income_controls fotp_score if $sample4reg , absorb(i.districtid) clu(districtid cy)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe pr_component treatment i.year i.urban_category female married divorced widow children age agesq second_educ compl_educ i.EMP_UNEMP_missing income_contro …
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
author-named unitnames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event241% · 1484 examples in the code
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 $controls_indiv if less_evolution==1, absorb(bpl highschoolentryyear year) cluster(bpl) no …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 female black asian native other multiple hispanic if less_evolution==1, absorb(bpl highsch …
- The Benefits of Forced Experimentation: Striking Evidence from the London Underground Netw
Quarterly Journal of Economics 2017 · pkg 7513
areg nonmode post post_`var' speed post_speed post_speed_`var', r a(prestige)
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) /// covariates(${firm} ${ceo} postchange) absorb(eventid year) vce(c …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) covariates(firmage firmage2 gender age age2 yrinco i.education postchang …
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
reghdfe `variable' i.hci##ib(1972).year , /// absorb( id year ``regressortype'') /// vce(cluster id)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `variable' i.hci##ib(1972).year , absorb( id year c.l_costs_0#b(1972).year c.l_avg_wages_0#b(1972).year c.l_y_n_0#b(1972).year c.l_avg_size_0#b(1972).ye …
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
-
county / city / district13% · 48
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
reghdfe pr_component treatment i.year $ind_controls $income_controls fotp_score if $sample4reg , absorb(i.districtid) clu(districtid cy)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe pr_component treatment i.year i.urban_category female married divorced widow children age agesq second_educ compl_educ i.EMP_UNEMP_missing income_contro …
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
eventstudyinteract gdp_pc Lag_D3 Lag_D2 Lag_D1 Lag_D0 Lead_D2 Lead_D3 Lead_D4 if reform_year_all<2007 | reform_year_all==., absorb(i.year i.county_id i.year##i …
- Ambulance Taxis: The Impact of Regulation and Litigation on Health-Care Fraud
Journal of Political Economy 2025 · pkg 7764
reghdfe lfirm ib99.reltime_civ2 postpa postcrim, absorb(district month) vce(cluster district) // Used in Figure A18b
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
ggiplot(list("Proposed Revocations" = feols(MME_PC ~ i(rel_year, treat, ref = -1) | county_fips + state^year, cluste …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
unspecified id (id, i, group...)13% · 47
4 examples in the code
- The Benefits of Forced Experimentation: Striking Evidence from the London Underground Netw
Quarterly Journal of Economics 2017 · pkg 7513
areg entmax post post_`var' maxdist post_maxdist post_maxdist_`var', r a(id)
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
reghdfe `variable' i.hci##ib(1972).year , /// absorb( id year ``regressortype'') /// vce(cluster id)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `variable' i.hci##ib(1972).year , absorb( id year c.l_costs_0#b(1972).year c.l_avg_wages_0#b(1972).year c.l_y_n_0#b(1972).year c.l_avg_size_0#b(1972).ye …
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
eventstudyinteract any_exp Lag_d3 Lag_d2 Lag_d1 Lag_d0 Lead_d1 Lead_d2 Lead_d3, absorb(i.year i.panel) cohort(first_relat) control_cohort(never_reform) vce(clus …
- Sweeping up Gangs: The Effects of Tough-on-Crime Policies from a Network Approach
American Economic Journal: Economic Policy 2026 · pkg 11714
eventstudyinteract Y F*event L*event if arrested==1 & t!=219 , vce(cluster i) absorb(i t i.yob#c.t i.female#c.t i.idnac#c.t) cohort(ei) control_cohort(lastcoh …
- The Benefits of Forced Experimentation: Striking Evidence from the London Underground Netw
Quarterly Journal of Economics 2017 · pkg 7513
-
author-named unit × timenames the reader has no word for, commonest first:
pis,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11 shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,(hm_extpoor_rate_11 h_ypchtot_11 unempl_rate_11 esc_11 literacy_rate_11)#year,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#byear,(s_imp_farmland_1929 farms_pc_1929 ratio29 dtra_30 inntekt_ialt2 )#wom#byear,(shpoor_11 matricula_total_11 prom_lect4b_rbd_11 prom_mate4b_rbd_11)#year,*agebin,*event213% · 454 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eventstudyinteract ln_citypop /// cmH /// cmH_P* /// [aweight = ln_citypop_nm] , absorb(i.i##i.t i.year i.cmH#c.t i.i##i.cmH) vce(cluster i) /// … - Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eststo col6: /// by CEO's education reghdfe ash_f1allpatxc c.bitrust_sd#i.postgradnonMBA if bitrustsample, /// a(${bitrustFEs}) cluster(${cluster}) keep …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo col6: reghdfe ash_f1allpatxc c.bitrust_sd#i.postgradnonMBA if bitrustsample, a(ceoid eubmcode boardid#year) cluster(etheubmcode) keepsin
- Ambulance Taxis: The Impact of Regulation and Litigation on Health-Care Fraud
Journal of Political Economy 2025 · pkg 7764
eststo: reghdfe log_tot_rev post_treat size2_inter size3_inter size4_inter if group1==1, a(i.year##i.size_oth i.state_code##i.size_oth) vce(cluster state)
- Cultural Distance and Ethnic Civil Conflict
American Economic Review 2025 · pkg 11597
reghdfe con_government c.post#c.more_distant if timeline>=-3 & timeline<=2, abs(gwgroupid_R#change_nr_bis t_4#change_nr_bis t_5#change_nr_bis t_6#change_nr_bis …
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
state / province8% · 29
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eststo: reghdfe `var' post_ban, absorb(state year) cluster(state)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
reghdfe share_enroll $design_controls_state c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe share_enroll personal_income union_st c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reg evo_approval_conv pre78 pre56 pre34 zero post01 post23 post45 i.surveyyear i.state16 i.cohort if less_evolution==1, vce(cluster state16)
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
reghdfe rollout rotate_last_year c.rotate_incentive_shock#c.rotate_last_year#c.positive c.rotate_incentive_shock#c.rotate_last_year#c.negative, absorb(i.exp_lst …
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
state / province × time5% · 18
4 examples in the code
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
eventstudyinteract gdp_pc Lag_D3 Lag_D2 Lag_D1 Lag_D0 Lead_D2 Lead_D3 Lead_D4 if reform_year_all<2007 | reform_year_all==., absorb(i.year i.county_id i.year##i …
- Spillover, Efficiency, and Equity Effects of Regional Firm Subsidies
American Economic Journal: Economic Policy 2025 · pkg 11585
eventstudyinteract ln_empl ref_early_* if inrange(year,1996,2006) & manuf == 1 & m30 == 1, absorb(betnr ao_kreis state_year) cohort(cohort) control_cohort(contr …
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
ggiplot(list("Proposed Revocations" = feols(MME_PC ~ i(rel_year, treat, ref = -1) | county_fips + state^year, cluste … - Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
qui eststo m5: reghdfe w_g_gdp post_ind_tau_1 post, a(state_1#state_2 region_gdp#year state_2#year) cl(state_1 state_2) nocons
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
-
county / city / district × time3% · 10
4 examples in the code
- The cleanup of US manufacturing through pollution offshoring
Journal of International Economics 2025 · pkg 14391
eststo: reghdfe l_release_TUW_PM s1999Xpost i.intermed#i.year if year>=1997 & year<=2017, a(id countyXyear) cluster(sic4 county)
- Strategic Formal Layoffs: Unemployment Insurance and Informal Labor Markets
American Economic Journal: Applied Economics 2023 · pkg 16875
/* T3 Col 2*/ capture noisily qui eststo main_2, title("mu-mo"): reghdfe ID3unempl2 affected c.affected#c.treated c.affected#c.treated#c.post ,a(muni#month trea … - Efficiency and Equity Impacts of Urban Transportation Policies with Equilibrium Sorting
American Economic Review 2024 · pkg 17225
eststo: reghdfe year_jiedao_coef after , absorb(objectid district#year)
- Gender-Biased Technological Change: Milking Machines and the Exodus of Women from Farming
American Economic Review 2026 · pkg 17432
qui ivreghdfe `Y' (M = c.cows#c.NAT) o.0.reform 1.reform 2.reform if sex==2, first absorb(fodes_80 byear byear##county c.($flextrends )#byear) cl(fodes_80)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui ivreghdfe `Y' (M = c.cows#c.NAT) o.0.reform 1.reform 2.reform if sex==2, first absorb(fodes_80 byear byear##county c.(s_imp_farmland_1929 farms_pc_1929 rati …
- The cleanup of US manufacturing through pollution offshoring
Journal of International Economics 2025 · pkg 14391
-
firm3% · 10
4 examples in the code
- Spillover, Efficiency, and Equity Effects of Regional Firm Subsidies
American Economic Journal: Economic Policy 2025 · pkg 11585
eventstudyinteract ln_empl ref_early_* if inrange(year,1996,2006) & manuf == 1 & m30 == 1, absorb(betnr ao_kreis state_year) cohort(cohort) control_cohort(contr …
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
qui eststo m1: reghdfe std_d_debt young_post_tau post_tau young_tau young_post post ind_tau_1, a(gvkey sic#year) cl(state_gdp)
- The Unintended Impact of R&D Tax Credits on Innovative Search
Review of Economics and Statistics 2024 · pkg 13800
eventstudyinteract xrd_d g_5 g_4 g_3 g_2 g0 g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11 g12 g13 g14 g15 g_1 if ((year<=first_taxB+15 & year>=first_taxB-5) | first_ta …
- Downward Revision of Investment Decisions after Corporate Tax Hikes
American Economic Journal: Economic Policy 2024 · pkg 17265
eventstudyinteract down_dummy g_2 g_1 g0-g2 , cohort(t_group_het) control_cohort(never_group) absorb(i.plantnum i.year)
- Spillover, Efficiency, and Equity Effects of Regional Firm Subsidies
American Economic Journal: Economic Policy 2025 · pkg 11585
-
industry × time3% · 9
4 examples in the code
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
reghdfe `variable' i.hci##ib(1972).year##i.korea , /// absorb( i.id#i.year i.industry#i.year i.id#i.industry ) /// vce(cluster id indust … - The Value of Information in Competitive Markets: Evidence from Small and Medium-Sized Ente
Journal of Political Economy 2025 · pkg 7687
reghdfe D.(Log_TotalAmount Adoption) temp_affected_1 D.Age_* , absorb($Controls c.temp_2#i.merchant_category_id#i.Zone ) vce(cluster merchant_fuc)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe D.(Log_TotalAmount Adoption) temp_affected_1 D.Age_* , absorb(i.Date#i.Sector c.temp_2#i.merchant_category_id#i.Zone ) vce(cluster merchant_fuc)
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
qui eststo m1: reghdfe std_d_debt young_post_tau post_tau young_tau young_post post ind_tau_1, a(gvkey sic#year) cl(state_gdp)
- Serving the Underserved: Microcredit as a Pathway to Commercial Banks
Review of Economics and Statistics 2023 · pkg 13499
reghdfe `var' post $individual_controls, absorb(sector_id date_m i.sector_id##c.date_m) cluster(sector_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `var' post female single young gvt_employee, absorb(sector_id date_m i.sector_id##c.date_m) cluster(sector_id)
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
Share of 358 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
reghdfe39% · 139
3 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eststo: reghdfe `var' post_ban, absorb(state year) cluster(state)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
reghdfe share_enroll $design_controls_state c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe share_enroll personal_income union_st c.std_add_exp post std_add_exp_post, a(state_fips yr) cluster(state_fips)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 $controls_indiv if less_evolution==1, absorb(bpl highschoolentryyear year) cluster(bpl) no …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe lifesciences_conv pre78 pre56 pre34 zero post01 post23 post45 female black asian native other multiple hispanic if less_evolution==1, absorb(bpl highsch …
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
did_imputation23% · 82
3 examples in the code
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
did_imputation logemp id year event_d if event_d>2013, autosample pretrends(4) horizon(0 1 2 3 4 )
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
did_imputation ash_f1allpat eventid year cohort_more, /// controls(postchange firmage* gender age* yrinco educ_*) cluster(${cluster}) autosample tol(0.001)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation ash_f1allpat eventid year cohort_more, controls(postchange firmage* gender age* yrinco educ_*) cluster(eventid) autosample tol(0.001)
- The Global Race for Talent: Brain Drain, Knowledge Transfer, and Growth
Quarterly Journal of Economics 2025 · pkg 7646
did_imputation pat_year codinv year first_migration if year>=2000, leaveout autosample /// hor(0/4) pretrend(4)
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
-
eventstudyinteract21% · 76
3 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eventstudyinteract ln_citypop /// cmH /// cmH_P* /// [aweight = ln_citypop_nm] , absorb(i.i##i.t i.year i.i##i.cmH) vce(cluster i) /// cohort(Ei … - Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) /// covariates(${firm} ${ceo} postchange) absorb(eventid year) vce(c …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract ash_f1allpat postchange, cohort(cohort) control_cohort(notmoretrust) covariates(firmage firmage2 gender age age2 yrinco i.education postchang …
- The Global Race for Talent: Brain Drain, Knowledge Transfer, and Growth
Quarterly Journal of Economics 2025 · pkg 7646
eventstudyinteract pat_year tau_*, vce(cluster coaut_ year) absorb(codinv year) /// cohort(first_migration) control_cohort(controlcohort) covariates(i.exp )
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
csdid20% · 72
3 examples in the code
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
csdid lifesciences_conv if less_evolution==1 , time(highschoolentryyear) notyet gvar(first_treat) method(dripw) agg(event) rseed(2) cluster(bpl)
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
csdid ash_f1allpat ${firm} ${ceo} postchange, ivar(eventid) time(year) gvar(cohort_more) agg(simple)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):csdid ash_f1allpat firmage firmage2 gender age age2 yrinco i.education postchange, ivar(eventid) time(year) gvar(cohort_more) agg(simple)
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
csdid `variable' `controlset', /// time(year) ivar(id) gvar(gvar) /// method(reg) agg(event) replaceAs we read it — macros filled in / loop expanded (an interpretation, not the file's text):csdid `variable' l_costs_0 l_avg_size_0 l_avg_wages_0 l_y_n_0, time(year) ivar(id) gvar(gvar) method(reg) agg(event) replace
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
-
did_multiplegt20% · 70
3 examples in the code
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
did_multiplegt ln_num_trips city_id time EVENT, robust_dynamic dynamic(70) placebo(35) longdiff_placebo breps(10) seed(1) controls(e_rate inc_pc precipitatio …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
did_multiplegt pr_component districtid year treatment, controls($income_controls fotp_score urban_category_* female married divorced widow children age agesq se …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_multiplegt pr_component districtid year treatment, controls(income_control democ7 democ5 lngdp_pc unemployment fotp_score urban_category_* female married di …
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
did_multiplegt logposted ID year interaction, placebo(4) dynamic(8) breps(20) robust_dynamic save_results("$replication_estimates/did")As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_multiplegt logposted ID year interaction, placebo(4) dynamic(8) breps(20) robust_dynamic save_results("/Users/Mathilde/Dropbox/Posted_workers/Replication/TN …
- On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
-
reg20% · 70
3 examples in the code
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
reg evo_approval_conv pre78 pre56 pre34 zero post01 post23 post45 i.surveyyear i.state16 i.cohort if less_evolution==1, vce(cluster state16)
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
reg three_g_w c.top_lightnings_w_per_area#c.year i.year i.districtid $income_controls c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_desert#c.yea …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reg three_g_w c.top_lightnings_w_per_area#c.year i.year i.districtid income_control democ7 democ5 lngdp_pc unemployment c.max_elevation#c.year i.popul_density_b …
- Ban the Box, Criminal Records, and Racial Discrimination: A Field Experiment
Quarterly Journal of Economics 2018 · pkg 7473
reg response pre_white white pre ged empgap if remover==0 & balanced==1 , cl(chain_id)
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
-
areg8% · 30
3 examples in the code
- The Benefits of Forced Experimentation: Striking Evidence from the London Underground Netw
Quarterly Journal of Economics 2017 · pkg 7513
areg entmax post post_`var' maxdist post_maxdist post_maxdist_`var', r a(id)
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
areg p treat treattop5 treatafter treattop5after after top5 top5after totaldish lbill sited2-sited4, absorb(name) cluster(billid)
- Women's political participation and intrahousehold empowerment: Evidence from the Egyptian
Journal of Development Economics 2019 · pkg 12168
quietly xi: areg ibp post_group post $xlist $xcoh $xpost $xpostcoh, cluster(ID_2) absorb(ID_2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quietly xi: areg ibp post_group post poorest middle richer richest urb nb_child primary secondary higher age age_husband husband_work birthcoh_2 birthcoh_3 post …
- The Benefits of Forced Experimentation: Striking Evidence from the London Underground Netw
Quarterly Journal of Economics 2017 · pkg 7513
-
att_gt6% · 22
3 examples in the code
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
cs1 = att_gt(yname = "ffmsy", tname = "year", idname = "id", gname = "eez", # xformla = ~ gdp + gdp2 + credit, # … - Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
ggdid(aggte(att_gt(yname = "logopioids", gname = "treatperioid_action", idname = "cityID", tname = "period", xformla = NULL, data = inner_joi … - Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
atts <- att_gt( yname = "crude_rate_20_64", tname = "year", idname = "county_code", gname = "treat_year", xformla = as.formula(paste("~", paste(covs, …
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
-
xtreg6% · 22
3 examples in the code
- Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
xtreg crude_rate_20_64 c.Treat#c.Post i.year, fe vce(cluster county_code)
- Energy Efficiency and Electricity Reliability
Review of Economics and Statistics 2021 · pkg 13276
eststo: xtreg elec TGH_Tpost TGH_Spost TGL_Tpost TGL_Spost TGH_T TGH_S TGL_T TGL_S post s7_1_5_1_b hdd $bill i.hh_id i.time , vce(cl hh_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: xtreg elec TGH_Tpost TGH_Spost TGL_Tpost TGL_Spost TGH_T TGH_S TGL_T TGL_S post s7_1_5_1_b hdd collect_days i.hh_id i.time , vce(cl hh_id)
- Improving Child Health and Cognition: Evidence from a School-Based Nutrition Intervention
Review of Economics and Statistics 2021 · pkg 13797
xtreg hemoglobin treat_post treat post $socio_cov_1_vari $school_cov_4_vari, fe cluster (school_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtreg hemoglobin treat_post treat post no_HHmembers years_schooling_father years_schooling_mother asset_index total_enrollment class_size student_teacher_ratio, …
- Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
-
feols2% · 8
3 examples in the code
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
ggiplot(list("Proposed Revocations" = feols(MME_PC ~ i(rel_year, treat, ref = -1) | county_fips + state^year, cluste … - Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
mod1 <- feols(crude_rate_20_64 ~ Treat*Post, data = short_data, cluster = ~county_code)
- Gender-Biased Technological Change: Milking Machines and the Exodus of Women from Farming
American Economic Review 2026 · pkg 17432
res_sunab <- feols(y ~ x1 + sunab(year_treated, year) | id + year, base_stagg)
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
Share of 358 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.
Validation checks
-
pre-trend test (leads / parallel trends)31% · 123
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
xlab(1946(1)1954) text(0.055 1946.45 "{it:F}-test for pre-trend", size(medsmall)) text(0.05 1946.45 "{it:p}-value = `pval'", size(medsmall)) - On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
did_multiplegt ln_num_trips city_id time EVENT, robust_dynamic dynamic(70) placebo(35) longdiff_placebo breps(10) seed(1) controls(e_rate inc_pc precipitatio …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
did_multiplegt pr_component districtid year treatment, controls($income_controls fotp_score urban_category_* female married divorced widow children age agesq se …
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
did_multiplegt logposted ID year interaction, placebo(4) dynamic(8) breps(20) robust_dynamic save_results("$replication_estimates/did")
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
event-time (lead/lag) dummies5% · 19
4 examples in the code
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
xi: reg pv treatment i.fv*i.delay i.college i.female i.race i.religion i.practicing i.family_income, cluster(id)
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
reg treated c.prt_hat1 c.prt_hat1#pbegin i.related lgdppc, vce(cl theme)
- The Impact of Children's Health Shocks on Parents' Labor Earnings and Mental Health
Review of Economics and Statistics 2024 · pkg 13403
xi i.time_event,prefix("i_") noomit - Do Stay-at-Home Orders Cause People to Stay at Home? Effects of Stay-at-Home Orders on Con
Review of Economics and Statistics 2023 · pkg 13644
reghdfe visit i.eventtime [aweight=pop_estimate_2018] , absorb(date county_fips) cluster(state_fips)
- Channeling Fisher: Randomization Tests and the Statistical Insignificance of Seemingly Sig
Quarterly Journal of Economics 2019 · pkg 7644
-
event-study plot20% · 77
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
event_plot e(b_iw)#e(V_iw), default_look /// stub_lag(cmH_Post#) stub_lead(cmH_Pre#) /// graph_opt(ytitle("Cousin marriage rate") xtitle("Decades since … - Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
event_plot mat1_twfe#mat3_twfe, stub_lag(g_#) stub_lead(g_m#) ciplottype(rcap) plottype(scatter) /// graph_opt(bgcolor(white) plotregion(color(white)) g … - Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
event_plot, default_look graph_opt(xtitle("Years Since First Posting Use") ytitle("Average Effect") /// title("Borusyak et al. (2021) imputation estimator", si … - The Global Race for Talent: Brain Drain, Knowledge Transfer, and Growth
Quarterly Journal of Economics 2025 · pkg 7646
cap which event_plot
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
heterogeneity-robust estimator (csdid, did_imputation, did_multiplegt, ...)60% · 236
4 examples in the code
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
eventstudyinteract ln_citypop /// cmH /// cmH_P* /// [aweight = ln_citypop_nm] , absorb(i.i##i.t i.year i.i##i.cmH) vce(cluster i) /// cohort(Ei … - On the Effects of the Availability of Means of Payments: The Case of Uber
Quarterly Journal of Economics 2022 · pkg 7434
did_multiplegt ln_num_trips city_id time EVENT, robust_dynamic dynamic(70) placebo(35) longdiff_placebo breps(10) seed(1) controls(e_rate inc_pc precipitatio …
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
csdid lifesciences_conv if less_evolution==1 , time(highschoolentryyear) notyet gvar(first_treat) method(dripw) agg(event) rseed(2) cluster(bpl)
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
did_multiplegt pr_component districtid year treatment, controls($income_controls fotp_score urban_category_* female married divorced widow children age agesq se …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_multiplegt pr_component districtid year treatment, controls(income_control democ7 democ5 lngdp_pc unemployment fotp_score urban_category_* female married di …
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
HonestDiD sensitivity bounds9% · 35
4 examples in the code
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
honestdid, pre(1 2) post(5 6 7 8) mvec(0.5(0.5)2) alpha(`alpha') omit
- Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education
Quarterly Journal of Economics 2024 · pkg 7436
honestdid, l_vec(l_vec) pre(1/3) post(4/6) mvec(0(0.001)0.01) omit alpha(0.05) delta(sd) coefplot `plotopts' yscale(r(-0.05 0.15)) ytick(-0.05(0.05)0.15) ylabel …
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
delta_rm_results <- HonestDiD::createSensitivityResults_relativeMagnitudes(betahat = betahat, sigma = sigma, …
- Why Is Workplace Sexual Harassment Underreported? The Value of Outside Options amid the Th
American Economic Review 2026 · pkg 11708
honestdid, pre(1/3) post(4/7) mvec(0(0.01)0.06) delta(sd) matasave(moderate_honest)
- Why Doesn’t the United States Have National Health Insurance? The Political Role of the Am
Quarterly Journal of Economics 2026 · pkg 7432
-
multiple-testing correction (FDR, Romano-Wolf, ...)6% · 22
4 examples in the code
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
c1h = c(round(p.adjust(c1$coeftable[c(1,2),4],method= "holm"),5),NA)
- The Effect of Education Policy on Crime: An Intergenerational Perspective
Journal of Political Economy 2026 · pkg 7857
rwolf violent1529 property1529 drugs1529 traffic1529 taxfraud1529 others1529, indepvar(experiment_bf) method(areg) controls(i.cohort_f i.educlevel) cluster(komm …
- Social Media and Mental Health
American Economic Review 2022 · pkg 11258
gen fdr_temp1 = `qval_adj'*rank/`totalpvals'
- ’Til Dowry Do Us Part: Bargaining and Violence in Indian Families
Review of Economics and Statistics 2026 · pkg 13443
rwolf $dow, indepvar(dowTreat ) controls(hindu1 dow_cohort $cov $fe2) seed(2000) reps(500) vce(cl state )
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
Share of 393 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.
The heterogeneity-robust share is partly circular — those estimators also put a package into this design. Placebo tests are not shown: the detector read 7 of 10 correct.