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
eventstudyinteract,reghdfe- clusters by
- state / province
- fixed effects
- county / city / district + time
- outliers
- winsorize 2/98
- missing values
- drop rows with missing values
- sample years
- 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 financials2% · 10
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
- Tax Policy Expectations and Investment
Journal of Accounting Research 2025 · pkg 12707
drop if sic>=6000 & sic<=6999
- Does U.S. Immigration Policy Facilitate Financial Misconduct?
Journal of Accounting Research 2025 · pkg 12738
drop if $sic>=60 & $sic<=69
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):drop if sicc2>=60 & sicc2<=69
- Establishment of National Public Audit Oversight Boards: Descriptive Evidence and Implicat
Journal of Accounting Research 2026 · pkg 12746
drop if sic>=6000 & sic<=6999
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
-
common shares only (shrcd 10/11)1% · 4
4 examples in the code
- Do Shared Auditors Facilitate Follow‐on Innovation?
Journal of Accounting Research 2026 · pkg 12753
keep if SHRCD == 11 | SHRCD == 10
- 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
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
keep if shrcd == 11 | shrcd == 10
- Do Shared Auditors Facilitate Follow‐on Innovation?
Journal of Accounting Research 2026 · pkg 12753
-
exclude utilities1% · 4
4 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
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
drop if sic >=4900 & sic <=4999
- Corporate Financial Constraints, Minimum Wage Policies, and Employment
Review of Financial Studies 2026 · pkg 253181
drop if inrange(sic, 4900, 4999)
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
-
NYSE / AMEX / Nasdaq only (exchcd 1-3)1% · 3
3 examples in the code
- Do Shared Auditors Facilitate Follow‐on Innovation?
Journal of Accounting Research 2026 · pkg 12753
keep if EXCHCD == 1 | EXCHCD == 2 | EXCHCD == 3
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
keep if inlist(exchcd,1,2,3) == 1
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
keep if exchcd == 1 | exchcd == 2 | exchcd == 3
- Do Shared Auditors Facilitate Follow‐on Innovation?
Journal of Accounting Research 2026 · pkg 12753
-
exclude public administration / unclassified1% · 3
3 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
- Trade Credit and the Transmission of Unconventional Monetary Policy
Review of Financial Studies 2023 · pkg 160603
drop if sic2>=90 & sic2<=99
- Taxes Depress Corporate Borrowing: Evidence from Private Firms
Review of Economic Studies 2026 · pkg 18998
-
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
-
exclude financials + utilities0% · 1
1 example in the code
- Board connections, firm profitability, and product market actions
Journal of Financial Economics 2026 · pkg 114094
drop if (sic >= 6000 & sic <= 6999) | (sic >= 4900 & sic <= 4999)
- Board connections, firm profitability, and product market actions
Journal of Financial Economics 2026 · pkg 114094
Share of 498 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
149 of 498 packages (30%) winsorize or trim something: 140 winsorize, 21 trim, 28 by group (e.g. by year).
-
winsorize 1/9963% · 94
4 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
winsor flow, gen(flowx) p(0.01)
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
replace chw_p_`x' = `r(p1)' if chw_p_`x' < `r(p1)'
- The Imitation Game: How Encouraging Renegotiation Makes Good Borrowers Bad
Review of Financial Studies 2024 · pkg 167
winsor2 curunschedprin_keep,cuts(1 99) replace
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
winsor2 trade* $x ,cut(1 99) replace
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):winsor2 trade* size mtb lev rd invest cash ,cut(1 99) replace
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
winsorize 1/99 by group15% · 22
4 examples in the code
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
winsor2 ret_d, replace by(date)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
winsor2 value*,cut(1 99) by(hscode1) replace
- 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 Roles of Data Providers and Analysts in the Production, Dissemination, and Pricing of
Journal of Accounting Research 2022 · pkg 12638
winsor2 gexp fexp analysts_employed mean_abs_fcast_error_act_w abs_fcast_error_prc abs_fcast_error_act_w n_ea_covered_5d, by(yearqtr) replace
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
-
winsorize none/9912% · 18
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/959% · 14
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)
- Regional Banks, Aggregate Effects
Journal of Financial Economics 2026 · pkg 14269
winsor2 ir_dep_jun23 ir_dep_mar23 ir_dep_dec22, 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 …
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
-
trim 1/999% · 13
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
- Quid Pro Quo? Private Information Flows in Shareholder Activism: Evidence from Mutual Fund
Journal of Accounting Research 2026 · pkg 12786
%winsor(dsetin=work.Analysis, dsetout=work.Analysis, byvar=none, vars=relstkpick1, type=trim, pctl=1 99);
- 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
- Economic Consequences of Kinship: Evidence From U.S. Bans on Cousin Marriage
Quarterly Journal of Economics 2023 · pkg 7422
-
winsorize none/955% · 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 2/984% · 6
4 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
winsor proinst1, gen(proinst) p(0.02)
- 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
- Did Banks Pay Fair Returns to Taxpayers on TARP?
The Journal of Finance 2024 · pkg 15993
winsor cap, p(.02) g(temp)
- Impact of fertility relaxation on the housing market outcomes
Journal of Urban Economics 2025 · pkg 39514
winsor2 ltv,cuts(2 98) replace
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
winsorize 0.5/99.53% · 5
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
Share of the 149 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values80% · 399
4 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
drop if comp_cik==.
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
data.RCT_letter <- na.omit(data.RCT_letter)
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
drop if missing(chaebol_2015) | missing(PICgte50)
- The Imitation Game: How Encouraging Renegotiation Makes Good Borrowers Bad
Review of Financial Studies 2024 · pkg 167
drop if maxorigloanbal==.
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
replace missing with zero (imputation)63% · 313
4 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
replace tna_inst=0 if tna_inst==.
- The Imitation Game: How Encouraging Renegotiation Makes Good Borrowers Bad
Review of Financial Studies 2024 · pkg 167
replace dpopp_indic_base=0 if dpopp_indic_base==.
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
replace indNum_a_priv=0 if missing(indNum_a_priv)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
replace count = 0 if count==.
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
replace missing with another value (imputation)60% · 298
4 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
replace familysize=size_control if familysize==.
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
replace parity_year = 99999 if parity_year == .
- The Imitation Game: How Encouraging Renegotiation Makes Good Borrowers Bad
Review of Financial Studies 2024 · pkg 167
replace unschedsize=(curunschedprin_keep/maxlastbegin) if unschedsize==. & (maxdisp==0 | maxdisp==.) & (maxlastbegin!=0 & maxlastbegin!=.)
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
replace t_sic=sic if missing(t_sic)
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
interpolate missing values27% · 134
4 examples in the code
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
tsfill
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
carryforward `v'_2001, replace
- 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
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
Share of 498 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 estimation86% · 385
- default iid only11% · 48
- robust only (never clusters)4% · 16
Of the 449 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,absorbid3,ac,ac_nic36% · 1394 examples in the code
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
eventstudyinteract rgls scs_high_hhi scs_low_hhi , cohort(list_scs) control_cohort(never_treat) covariates(ubeta idvol logmv mb mlev fbias sgrw ixrgls) absorb(i …
- 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)
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
-
unspecified id (id, i, group...)12% · 48
4 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo linear_2: reg buyin_yearly_dummy post_dist_ret_int post dist_ret_int ${controls} i.year if eventtime < 1, vce(cluster id) - Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
reghdfe cash_at_inc i.treated##i.after, absorb(i.firmid i.year) vce(cluster groupid)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
eststo: xi: reghdfe engage_ind_new iss_treat_post if size_w!=., absorb(id fyr) cluster(id)
- Is Firm-Level Political Risk Priced in the Equity Option Market?
Review of Asset Pricing Studies 2024 · pkg 7221
reghdfe call BRisk BRisk_Post Post BSentiment Size IdioVol Reversal Momentum Illiquidity BM GrossProfit Inst Leverage, a(month Industry) vce(cluster id)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
county / city / district12% · 47
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
-
state / province11% · 42
4 examples in the code
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
reghdfe `outcome'_r treat_post , vce(cluster state) absorb(i.fips i.year)
- 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)
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
-
firm5% · 20
4 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe hedge `treatment' , absorb(gvkey_introduction year_introduction) `cluster'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe hedge post_treated_f , absorb(gvkey_introduction year_introduction) cluster(gvkey)
- Market Discipline in the Direct Lending Space
Review of Financial Studies 2024 · pkg 210
reghdfe loan_rate_new i.ind_post##i.ind_treated_company c.company_instr_time_fe##i.ind_treated_company c.lag_assets_total_ln##i.ind_treated_company c.company_al …
- The Impact of Carcinogenic Risk Exposure on Housing Values: Estimates from Chemical Reclas
Review of Financial Studies 2026 · pkg 278
eststo: reghdfe lnemp treated post post_treated if inrange(_t_bc,-`window',`window'), absorb($fe) vce(clus $clus)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe lnemp treated post post_treated if inrange(_t_bc,-`window',`window'), absorb(plantid statecode#_t_bc naics#_t_bc) vce(clus plantid)
- 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)
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
person2% · 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
-
country2% · 6
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);
- Establishment of National Public Audit Oversight Boards: Descriptive Evidence and Implicat
Journal of Accounting Research 2026 · pkg 12746
reghdfe absTotAcc2 i.ESTABLISHMENT i.IFRS_ADOPTION `controls' InvAssetsw RevARw PPENw ROAw if fyear>=2000, absorb (fyear gvkey) vce(cluster nation)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe absTotAcc2 i.ESTABLISHMENT i.IFRS_ADOPTION Size2w Performancew Growthw Loss PPE_Growthw Leveragew SalesVolw CFOVolw InvAssetsw RevARw PPENw ROAw if fyea …
- 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)
- Effective Health Aid: Evidence from Gavi’s Vaccine Program
American Economic Journal: Economic Policy 2025 · pkg 11596
-
two-way: author-named unit + timenames the reader has no word for, commonest first:
agency,cuid,pis,regno,study_id,absorbid3,ac,ac_nic2% · 64 examples in the code
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
reghdfe interest pol_treated policy treated_sd $bank_controls $loan_controls if time <= `y', absorb(time localauth_group) vce(cluster localauth_3 group_time)
- 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 )
- Regional Banks, Aggregate Effects
Journal of Financial Economics 2026 · pkg 14269
reghdfe logprl post##treated,absorb(year##yr_frack area_fips##yr_frack) cl(area_fips year)
- Inside Prison: The Effects of a Blanket Ban on New Psychoactive Substances
The Economic Journal 2025 · pkg 19120
reghdfe rate_finds num_pris post_0 [aw=num_pris] , abs(prison_id period) cluster(prison_id period )
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
-
bank1% · 5
4 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 …
- Did Banks Pay Fair Returns to Taxpayers on TARP?
The Journal of Finance 2024 · pkg 15993
eventstudyinteract payoutfrac2 g_* g0-g3 if highpmesub==0 , cohort(cohort) control_cohort(control) absorb(i.bank i.year) vce(cluster bank)
- 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 …
- Broken Relationships: Derisking by Correspondent Banks and International Trade
Review of Financial Studies 2026 · pkg 81073
did_imputation trade bvd_id year Ei, /// fe(bvd_id year#country_num) /// autosample /// cluster(BankID_num) tol(0.1)
- Spillovers of funding dry-ups
Journal of International Economics 2022 · pkg 14322
-
region / MSA / CZ1% · 5
4 examples in the code
- Competition and Certification: Theory and Evidence from the Audit Market
Review of Corporate Finance Studies 2026 · pkg 7319
eststo: reghdfe lspread treat_post treat post , abs( …
- Does U.S. Immigration Policy Facilitate Financial Misconduct?
Journal of Accounting Research 2025 · pkg 12738
qui reghdfe max_res_s_irr H1B_Post H1B Post if miss==0 & H1B_All==1, keepsing absorb(xid fyear) noomit vce(cluster msa)
- 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 …
- Competition and Certification: Theory and Evidence from the Audit Market
Review of Corporate Finance Studies 2026 · pkg 7319
Share of the 385 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
330 of 449 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:
facpurpose,factype,filingdateqtr,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#byear15% · 494 examples in the code
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
eststo r`regnum': reghdfe log_loan_val interaction_post_share post demeaned_share_treated if time<=225 & time != 218 & low_income == 1, absorb(i.lacode_float i. …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo r1: reghdfe log_loan_val interaction_post_share post demeaned_share_treated if time<=225 & time != 218 & low_income == 1, absorb(i.lacode_float i.time) v …
- 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)
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
-
author-named unitnames the reader has no word for, commonest first:
facpurpose,factype,filingdateqtr,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#byear14% · 464 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe sd_price post_treated , a(product_introduction date_introduction) cl(date)
- Human Capital Reallocation across Firms: Evidence from Idiosyncratic Shocks
Review of Corporate Finance Studies 2025 · pkg 7288
areg Revenue_cpi pre3##Treated pre2##Treated pre1##Treated post1##Treated post2##Treated post3##Treated i.idRelegation, absorb(RelegationEvent) robust
- 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)
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
unspecified id (id, i, group...) + time6% · 20
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) - Payment Practices Transparency and Customer‐Supplier Dynamics
Journal of Accounting Research 2024 · pkg 12678
reghdfe ln_AR control_post control post LnSales_1_99 if smp_prd ==1, ab(EntityID year) cluster(IQ_INDUSTRY_GROUP)
- 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)
- Manufacturing Revolutions: Industrial Policy and Industrialization in South Korea
Quarterly Journal of Economics 2025 · pkg 7606
-
county / city / district + time6% · 19
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
-
state / province + time4% · 14
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
-
firm + time4% · 13
4 examples in the code
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
eventstudyinteract rgls scs_high_hhi scs_low_hhi , cohort(list_scs) control_cohort(never_treat) covariates(ubeta idvol logmv mb mlev fbias sgrw ixrgls) absorb(i …
- Does Private Country-by-Country Reporting Deter Tax Avoidance and Income Shifting? Evidenc
Journal of Accounting Research 2020 · pkg 12581
eststo: reghdfe ETR_R CBCR POST CBCR_POST if EUHQ==1, absorb (Firm Year) cluster(Firm)
- Establishment of National Public Audit Oversight Boards: Descriptive Evidence and Implicat
Journal of Accounting Research 2026 · pkg 12746
reghdfe absTotAcc2 i.ESTABLISHMENT i.IFRS_ADOPTION `controls' InvAssetsw RevARw PPENw ROAw if fyear>=2000, absorb (fyear gvkey) vce(cluster nation)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe absTotAcc2 i.ESTABLISHMENT i.IFRS_ADOPTION Size2w Performancew Growthw Loss PPE_Growthw Leveragew SalesVolw CFOVolw InvAssetsw RevARw PPENw ROAw if fyea …
- 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 …
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
-
time3% · 11
4 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo linear_2: reg buyin_yearly_dummy post_dist_ret_int post dist_ret_int ${controls} i.year if eventtime < 1, vce(cluster id) - 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)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
author-named unit + author-named unit × timenames the reader has no word for, commonest first:
facpurpose,factype,filingdateqtr,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#byear2% · 74 examples in the code
- J’Accuse! Antisemitism and financial markets in the time of the Dreyfus Affair
Journal of Financial Economics 2024 · pkg 14199
eststo: reghdfe return_i treat1 treat2 if m_matched==1, a(i.firmn i.m_strata##i.daten i.sectorn##i.yearmonth) cluster(firmperiod)
- Regional Banks, Aggregate Effects
Journal of Financial Economics 2026 · pkg 14269
reghdfe logprl post##treated,absorb(year##yr_frack area_fips##yr_frack) cl(area_fips year)
- 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)
- J’Accuse! Antisemitism and financial markets in the time of the Dreyfus Affair
Journal of Financial Economics 2024 · pkg 14199
-
industry × time + author-named unitnames the reader has no word for, commonest first:
facpurpose,factype,filingdateqtr,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#byear1% · 44 examples in the code
- Funding Liquidity without Banks: Evidence from a Shock to the Cost of Very Short‐Term Debt
The Journal of Finance 2019 · pkg 15700
eststo dd2_`var': reghdfe `var' /// treat /// dum_post2011 /// c.dum_post2011#c.treat /// ,cluster(`cluster_var') absorb(nit `fe_xtivreg1')As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo dd2_`var': reghdfe `var' treat dum_post2011 c.dum_post2011#c.treat ,cluster(nit) absorb(nit isic3_year)
- CLO (Collateralized Loan Obligation) Market and Corporate Lending
Journal of Money, Credit and Banking 2023 · pkg 49247
eststo: reghdfe deal_la int_sec_post_wc int_sec_post int_post_wc if rev_only==0, absorb(lendercompanyid ind_qt) vce(cluster packageid lendercompanyid) noconstan …
- Mergers and acquisitions, technological change, and inequality
Journal of Financial Economics 2025 · pkg 96846
reghdfe `Y' treat $trend est_offshor,absorb(i.year#i.ind i.udbnum) vce(cluster firmid)
- Board connections, firm profitability, and product market actions
Journal of Financial Economics 2026 · pkg 114094
reghdfe margin treated post treatedXpost, absorb($fe) vce(cluster companyid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe margin treated post treatedXpost, absorb(i.ff48##i.year i.timeseriesid) vce(cluster companyid)
- Funding Liquidity without Banks: Evidence from a Shock to the Cost of Very Short‐Term Debt
The Journal of Finance 2019 · pkg 15700
-
person + time1% · 4
4 examples in the code
- 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)
- Career Effects Of Mental Health: Evidence From An Innovation In Treating Bipolar Disorder
Journal of Political Economy Microeconomics 2025 · pkg 76950
eststo r1: areg NOEARN BD c.BD#c.POST FEMALE DEPRANX SCHIZO c.FEMALE#i.YEAR c.FEMALE#i.BIRTHCOHORT i.YEAR i.BIRTHCOHORT, a(MOMID) cluster(MOMID)
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe state_change 1.b_treat 1.junior $ind_control $state_control, absorb(year personid) cluster(o_state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe state_change 1.b_treat 1.junior inventor NIH_grant o_carnegie_classification t_pub_3yr_lag10 avg_cite_all_3yrpub100 ln_o_state_population ln_o_real_inco …
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects
Journal of Econometrics 2021 · pkg 18011
Share of the 330 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
time50% · 224
4 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe market_share interaction post##treated_f##eaf##c.iron_ore_to_scrap , a(gvkey date) cl(gvkey)
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
reghdfe flowx post stress stress_post ret size_control flow_control load age_perfx turn_ratio exp_ratio lage per_cash illiqd familysize proinst i.nstyle if xx> …
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo linear_2: reg buyin_yearly_dummy post_dist_ret_int post dist_ret_int ${controls} i.year if eventtime < 1, vce(cluster id) - Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
eststo r`regnum': reghdfe log_loan_val interaction_post_share post demeaned_share_treated if time<=225 & time != 218 & low_income == 1, absorb(i.lacode_float i. …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo r1: reghdfe log_loan_val interaction_post_share post demeaned_share_treated if time<=225 & time != 218 & low_income == 1, absorb(i.lacode_float i.time) v …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
author-named unitnames the reader has no word for, commonest first:
facpurpose,factype,filingdateqtr,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#byear44% · 1984 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe sd_price post_treated , a(product_introduction date_introduction) cl(date)
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
reghdfe c25w /* */ c.brexit##c.dconstr##c.dlowinc /* */ c.policy##c.dconstr##c.dlowinc /* */ if period_s >= 5 & period_s <= 16, /* */ absorb(region_time_const_F …
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
reghdfe CAR i.treated##i.HighNI2013, absorb(i.ic) vce(cluster groupid) // Column (2)
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
qui eventstudyinteract avg_yield ru_parity_b$pre - ru_parity_p$lag if sample_3 == 1 & dif >= -$pre & dif <= $lag, cohort(parity_month) control_cohort(never_pari …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eventstudyinteract avg_yield ru_parity_b3 - ru_parity_p6 if sample_3 == 1 & dif >= -3 & dif <= 6, cohort(parity_month) control_cohort(never_parity) covariat …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
unspecified id (id, i, group...)13% · 58
4 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
eststo: xi: reghdfe engage_ind_new iss_treat_post if size_w!=., absorb(id fyr) cluster(id)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
qui eststo: reghdfe Dtrade treatpost post $x if poissonsample==1,ab(pair indyear case ) cl(case#shppanjivaid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo: reghdfe Dtrade treatpost post size mtb lev rd invest cash if poissonsample==1,ab(pair indyear case ) cl(case#shppanjivaid)
- Is Firm-Level Political Risk Priced in the Equity Option Market?
Review of Asset Pricing Studies 2024 · pkg 7221
reghdfe call BRisk BRisk_Post Post BSentiment Size Reversal Momentum Illiquidity BM GrossProfit Inst Leverage, a(month id) vce(cluster id)
- 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)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
author-named unit × timenames the reader has no word for, commonest first:
facpurpose,factype,filingdateqtr,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#byear12% · 534 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe market_share interaction post##treated_f##eaf##c.iron_ore_to_scrap , a(gvkey giso#date) cl(gvkey)
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
reghdfe cash_at_inc i.treated##i.after, absorb(i.firmid i.ic#i.year) vce(cluster groupid)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
eststo: reghdfe lnmargin treat_post_cut treat_post_nocut post if year~=event_year ,ab(firm_product cut#year case) cl(case#firm_product)
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
reghdfe `outcome'_r treat_post , vce(cluster state) absorb(i.fips i.year i.year#c._median_inc i.year#c._median_home_value i.year#c._education i.year#c._black_ …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
county / city / district12% · 53
4 examples in the code
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
reghdfe `outcome'_r treat_post , vce(cluster state) absorb(i.fips i.year)
- 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
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
-
state / province8% · 36
4 examples in the code
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
qui eventstudyinteract avg_yield ru_parity_b$pre - ru_parity_p$lag if sample_3 == 1 & dif >= -$pre & dif <= $lag, cohort(parity_month) control_cohort(never_pari …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eventstudyinteract avg_yield ru_parity_b3 - ru_parity_p6 if sample_3 == 1 & dif >= -3 & dif <= 6, cohort(parity_month) control_cohort(never_parity) covariat …
- 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)
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
firm8% · 35
4 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe market_share interaction post##treated_f##eaf##c.iron_ore_to_scrap , a(gvkey date) cl(gvkey)
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
reghdfe cash_at_inc i.treated##i.after, absorb(i.firmid i.year) vce(cluster groupid)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
qui eststo: reghdfe holding_esg_pct treat treatpost post $x_tb5 ,ab( gvkey case year ) cl( case#permno)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo: reghdfe holding_esg_pct treat treatpost post size mtb lev rd invest cash roa ior ,ab( gvkey case year ) cl( case#permno)
- The Impact of Carcinogenic Risk Exposure on Housing Values: Estimates from Chemical Reclas
Review of Financial Studies 2026 · pkg 278
eststo: reghdfe lnemp treated post post_treated if inrange(_t_bc,-`window',`window'), absorb($fe) vce(clus $clus)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe lnemp treated post post_treated if inrange(_t_bc,-`window',`window'), absorb(plantid statecode#_t_bc naics#_t_bc) vce(clus plantid)
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
industry × time6% · 26
4 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe market_share interaction post##treated_f##eaf##c.iron_ore_to_scrap , a(gvkey naics3#date) cl(gvkey)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
qui eststo: reghdfe Dtrade treatpost post $x if poissonsample==1,ab(pair indyear case ) cl(case#shppanjivaid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eststo: reghdfe Dtrade treatpost post size mtb lev rd invest cash if poissonsample==1,ab(pair indyear case ) cl(case#shppanjivaid)
- Competition and Certification: Theory and Evidence from the Audit Market
Review of Corporate Finance Studies 2026 · pkg 7319
eststo: reghdfe lspread treat_post treat post , abs( …
- 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 …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
state / province × time6% · 25
4 examples in the code
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
eststo: quietly reghdfe avg_yield post_parity post_parity_rural rural $controls if sample_1 == 1, absorb(state_ym hrr_ym) cluster($clustervar)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: quietly reghdfe avg_yield post_parity post_parity_rural rural c.rating##i.trade_yr c.log_maturity##i.trade_yr c.log_size##i.trade_yr callable##i.trade_y …
- Competition and Certification: Theory and Evidence from the Audit Market
Review of Corporate Finance Studies 2026 · pkg 7319
eststo: reghdfe lspread treat_post treat post lat roa tang lever mb cf_vol auditfee zscore loan_size lmaturity i_syndicate , abs(state_yr msa) cluster(msa) kee …
- 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 …
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
industry3% · 13
4 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
eststo: xi: reghdfe shareldr_d_p1 iss_treat interact_ccten comp_committee_tenure_ave `controls', absorb(fyear sic1)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: xi: reghdfe shareldr_d_p1 iss_treat interact_ccten comp_committee_tenure_ave size_w mtb_w roa_w lev_w abn_ret_1yr ln_analyst io_pct0 issrecno td_cboard_ …
- Is Firm-Level Political Risk Priced in the Equity Option Market?
Review of Asset Pricing Studies 2024 · pkg 7221
reghdfe call BRisk BRisk_Post Post BSentiment Size IdioVol Reversal Momentum Illiquidity BM GrossProfit Inst Leverage, a(month Industry) vce(cluster id)
- The JOBS Act and the Costs of Going Public
Journal of Accounting Research 2017 · pkg 12516
eststo: xi: reg acctlegalpct treated_post treated post lnproceeds_res unprofitable drnd lnage avrg_brmktsh lndiffdate nasdaq90d lnnreg_filter crisis i.famafrenc …
- 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) 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) cluster(sector_id)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
Share of 449 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
reghdfe46% · 208
3 examples in the code
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
eststo: reghdfe sd_price post_treated , a(product_introduction date_introduction) cl(date)
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
reghdfe flowx post stress stress_post ret size_control flow_control load age_perfx turn_ratio exp_ratio lage per_cash illiqd familysize proinst i.nstyle if xx> …
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
reghdfe c25w /* */ c.brexit##c.dconstr##c.dlowinc /* */ c.policy##c.dconstr##c.dlowinc /* */ if period_s >= 5 & period_s <= 16, /* */ absorb(region_time_const_F …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
did_imputation20% · 91
3 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
did_imputation Y i t Ei , horizons(0/3) pretrend(4) autosample delta(1) fe(i t)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
did_imputation trade4 i t Ei , fe(pair indyear case) controls($x period_2 period_1 period0 period1 period2 period3) autosample cluster(casesupp) tol(0.1)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation trade4 i t Ei , fe(pair indyear case) controls(size mtb lev rd invest cash period_2 period_1 period0 period1 period2 period3) autosample cluster( …
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
did_imputation rgls gvkey year list_scs, controls(`control') fe(gvkey year) autosample tol(0.0001) maxit(1000) cluster(incorpn) delta(1) hetby(high_hhi)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation rgls gvkey year list_scs, controls(ubeta idvol logmv mb mlev fbias sgrw ixrgls) fe(gvkey year) autosample tol(0.0001) maxit(1000) cluster(incorpn …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
eventstudyinteract19% · 86
3 examples in the code
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
qui eventstudyinteract avg_yield ru_parity_b$pre - ru_parity_p$lag if sample_3 == 1 & dif >= -$pre & dif <= $lag, cohort(parity_month) control_cohort(never_pari …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eventstudyinteract avg_yield ru_parity_b3 - ru_parity_p6 if sample_3 == 1 & dif >= -3 & dif <= 6, cohort(parity_month) control_cohort(never_parity) covariat …
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
eventstudyinteract rgls scs_high_hhi scs_low_hhi , cohort(list_scs) control_cohort(never_treat) covariates(ubeta idvol logmv mb mlev fbias sgrw ixrgls) absorb(i …
- 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 …
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
reg18% · 82
3 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo linear_2: reg buyin_yearly_dummy post_dist_ret_int post dist_ret_int ${controls} i.year if eventtime < 1, vce(cluster id) - Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
reg excess_ret c.dCash##c.treated##c.after dEarn c.dEarn#c.treated c.dEarn#c.after c.dEarn#c.treated#c.after dNA c.dNA#c.treated c.dNA#c.after c.dNA#c.treated#c …
- 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)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
csdid17% · 75
3 examples in the code
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
csdid log_private if country_sample==1 & deal_year<2013, ivar(sic_country) time(deal_year) gvar(treatment) cl( country_year) agg(simple)
- 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)
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
-
did_multiplegt16% · 71
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
-
areg8% · 37
3 examples in the code
- Human Capital Reallocation across Firms: Evidence from Idiosyncratic Shocks
Review of Corporate Finance Studies 2025 · pkg 7288
areg Revenue_cpi pre3##Treated pre2##Treated pre1##Treated post1##Treated post2##Treated post3##Treated i.idRelegation, absorb(RelegationEvent) robust
- 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)
- Human Capital Reallocation across Firms: Evidence from Idiosyncratic Shocks
Review of Corporate Finance Studies 2025 · pkg 7288
-
xtreg6% · 29
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)
- Assessing the Social Impact of Corporations: Evidence from Management Control Intervention
Journal of Accounting Research 2023 · pkg 12652
xtreg $DV wpd $COUNTRYSHOCKS if $PANEL, fe cluster(spurid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtreg ln_base_def wpd i.countryfactor#i.year if panelobs >=2, fe cluster(spurid)
- Reciprocity in Corporate Tax Compliance—Evidence from Ozone Pollution
Journal of Accounting Research 2023 · pkg 12662
xtreg cash_etr3 treatxpost treat post c.reg2##(c.median_income c.income_inequality c.education c.age c.urban c.rel c.social_capital c.statetaxrate c.temp c.wind …
- Difference-in-Differences Designs: A Practitioner’s Guide
Journal of Economic Literature 2026 · pkg 11745
-
att_gt6% · 26
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
-
feols2% · 9
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 449 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)27% · 132
4 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
did_imputation Y i t Ei , horizons(0/3) pretrend(4) autosample delta(1) fe(i t)
- 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 …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
event-time (lead/lag) dummies5% · 27
4 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
xi i.eventtime*i.appuser
- Human Capital Reallocation across Firms: Evidence from Idiosyncratic Shocks
Review of Corporate Finance Studies 2025 · pkg 7288
areg Revenue_cpi pre3##Treated pre2##Treated pre1##Treated post1##Treated post2##Treated post3##Treated i.idRelegation, absorb(RelegationEvent) robust
- 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)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
event-study plot17% · 83
4 examples in the code
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
event_plot, default_look graph_opt(xtitle("Periods since the event") ytitle("Average causal effect") legend(pos(5)ring(0)col(1)) ) - 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 …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
heterogeneity-robust estimator (csdid, did_imputation, did_multiplegt, ...)52% · 257
4 examples in the code
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
qui eventstudyinteract avg_yield ru_parity_b$pre - ru_parity_p$lag if sample_3 == 1 & dif >= -$pre & dif <= $lag, cohort(parity_month) control_cohort(never_pari …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui eventstudyinteract avg_yield ru_parity_b3 - ru_parity_p6 if sample_3 == 1 & dif >= -3 & dif <= 6, cohort(parity_month) control_cohort(never_parity) covariat …
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
csdid log_private if country_sample==1 & deal_year<2013, ivar(sic_country) time(deal_year) gvar(treatment) cl( country_year) agg(simple)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
did_imputation Y i t Ei , horizons(0/3) pretrend(4) autosample delta(1) fe(i t)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
did_imputation trade4 i t Ei , fe(pair indyear case) controls($x period_2 period_1 period0 period1 period2 period3) autosample cluster(casesupp) tol(0.1)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation trade4 i t Ei , fe(pair indyear case) controls(size mtb lev rd invest cash period_2 period_1 period0 period1 period2 period3) autosample cluster( …
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
HonestDiD sensitivity bounds7% · 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, ...)5% · 23
4 examples in the code
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
use fdroa_cohort_sample, clear
- 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'
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
Share of 498 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.