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 firm, firm + time fixed effects,
winsorizes, drops missing rows) —
it matches 5 of 6. Each contrast takes the second most common choice on one dimension.
- commands
reghdfe- clusters by
- firm
- fixed effects
- industry × time + author-named unit
- outliers
- winsorize 1/99; winsorize, cut not stored: the call could not be read
- missing values
- replace missing with another value (imputation); drop rows with missing values; replace missing with zero (imputation)
- screens
- exclude financials + utilities
- sample years
- 1999–2018 (as on the package page)
- checks
- event-time
- 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
reg- clusters by
- firm
- fixed effects
- industry + time
- outliers
- winsorize 1/99
- missing values
- —
- sample years
- 2001–… (as on the package page)
- checks
- none of the design's checks found
- commands
eventstudyinteract,did_imputation- clusters by
- author-named unit
- fixed effects
- firm + time
- outliers
- winsorize 1/99
- missing values
- drop rows with missing values
- checks
- heterogeneity-robust estimator; multiple-testing correction
Sample screens
-
exclude financials4% · 3
3 examples in the code
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
drop if sic >=6000 & sic <=6999
- Trade Credit and the Transmission of Unconventional Monetary Policy
Review of Financial Studies 2023 · pkg 160603
drop if sic2>=60 & sic2<=69
- Corporate Financial Constraints, Minimum Wage Policies, and Employment
Review of Financial Studies 2026 · pkg 253181
drop if inrange(sic, 6000, 6999)
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
-
exclude utilities2% · 2
2 examples in the code
- 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)
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
-
NYSE / AMEX / Nasdaq only (exchcd 1-3)1% · 1
1 example in the code
- 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
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
-
common shares only (shrcd 10/11)1% · 1
1 example in the code
- 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
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
-
exclude financials + utilities1% · 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
-
exclude public administration / unclassified1% · 1
1 example in the code
- Trade Credit and the Transmission of Unconventional Monetary Policy
Review of Financial Studies 2023 · pkg 160603
drop if sic2>=90 & sic2<=99
- Trade Credit and the Transmission of Unconventional Monetary Policy
Review of Financial Studies 2023 · pkg 160603
Share of 80 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
49 of 80 packages (61%) winsorize or trim something: 47 winsorize, 3 trim, 8 by group (e.g. by year).
-
winsorize 1/9976% · 37
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 group16% · 8
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
- Did pandemic relief fraud inflate house prices?
Journal of Financial Economics 2026 · pkg 14273
winsor2 ldp_unique_viewers_per_property_, by(month) replace
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
winsor2 weight_delta, by(year) cuts(1 99)
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
-
winsorize 2.5/97.58% · 4
4 examples in the code
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
winsor log_entvalue, gen(wlog_entvalue) p(0.025)
- ESG Shocks in Global Supply Chains
Review of Financial Studies 2026 · pkg 266
winsor2 weg,cut(2.5 97.5) replace
- Venture Capital and Startup Agglomeration
The Journal of Finance 2025 · pkg 15592
winsor2 size, cuts(2.5 97.5) replace
- Direct lenders in the U.S. middle market
Journal of Financial Economics 2024 · pkg 113347
winsor emp_total_hgr, gen(emp_total_hgrw) p(0.025)
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
-
winsorize 2.5/996% · 3
3 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
winsor retailflow, gen(flowx) p(0.025)
- 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
- Gender Diversity in Bank Boardrooms and Green Lending: Evidence from Euro Area Credit Regi
Review of Corporate Finance Studies 2025 · pkg 7326
winsor `var', g(`var'w) p(0.01)
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
winsorize 2/986% · 3
3 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)
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
trim 1/994% · 2
2 examples in the code
- Educating Investors about Dividends
Review of Financial Studies 2025 · pkg 81010
winsor2 pre_ post_, cuts(1 99) replace trim
- Broken Relationships: Derisking by Correspondent Banks and International Trade
Review of Financial Studies 2026 · pkg 81073
winsor2 grossloans - netloans, cuts(1 99) replace trim
- Educating Investors about Dividends
Review of Financial Studies 2025 · pkg 81010
-
trim 2.5/97.54% · 2
2 examples in the code
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
winsor2 res,cuts(2.5 97.5) trim suffix(1)
- Educating Investors about Dividends
Review of Financial Studies 2025 · pkg 81010
winsor2 monthly_holdings, cuts(2.5 97.5) replace trim
- Redemption in Kind and Mutual Fund Liquidity Management
Review of Financial Studies 2023 · pkg 79
-
winsorize 5/954% · 2
2 examples in the code
- Regional Banks, Aggregate Effects
Journal of Financial Economics 2026 · pkg 14269
winsor2 ir_dep_jun23 ir_dep_mar23 ir_dep_dec22, cuts(5 95)
- Are sustainability-linked loans designed to effectively incentivize corporate sustainabili
Financial Management 2023 · pkg 39043
data$prof_2017 <- Winsorize(data$prof_2017, p = c(0.05, 0.95))
- Regional Banks, Aggregate Effects
Journal of Financial Economics 2026 · pkg 14269
Share of the 49 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values74% · 59
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)57% · 46
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)38% · 30
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 values16% · 13
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
- Pension Fund Equity Investment and Firm Productivity
Journal of Financial and Quantitative Analysis 2026 · pkg 14136
tsfill
- Pirates without borders: The propagation of cyberattacks through firms’ supply chains
Journal of Financial Economics 2023 · pkg 14174
bysort bvdid: ipolate newvar id, gen(newvar2)
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
Share of 80 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 estimation90% · 66
- robust only (never clusters)5% · 4
- default iid only4% · 3
Of the 73 packages with a model that shows the design.
Main clustering level
-
firm20% · 13
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)
- Pension Fund Equity Investment and Firm Productivity
Journal of Financial and Quantitative Analysis 2026 · pkg 14136
eventstudyinteract `o' _I* $cntrl, absorb(i.cvr i.industry_year) cohort(cohort) control_cohort(controlgroup) vce(cluster cvr)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract `o' _I* age size kintense, absorb(i.cvr i.industry_year) cohort(cohort) control_cohort(controlgroup) vce(cluster cvr)
- 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:
absorbid3,aq,area_fips,bapv,bp1,case#firm_product,case#shppanjivaid,casesupp14% · 94 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 …
- Creditor rights, collateral reuse, and credit supply
Journal of Financial Economics 2023 · pkg 12465
eststo reg1:
- Ratings Quality and Borrowing Choice
The Journal of Finance 2019 · pkg 15692
reghdfe vwspread_tw over_post over post, absorb(sp_pre , save) vce(`secalc') keepsing;
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe vwspread_tw over_post over post, absorb(sp_pre , save) vce(cluster ngvkey) keepsing
- Funding Liquidity without Banks: Evidence from a Shock to the Cost of Very Short‐Term Debt
The Journal of Finance 2019 · pkg 15700
eststo plac1: reghdfe std0to60doa_w treat c.treat#c.year2009 c.treat#c.dum_post2011 /// l1lnassets l1tang l1x5_w l1lnbvequity c.l1lnbvequity#c.dum_year_eq …
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
-
unspecified id (id, i, group...)12% · 8
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
-
state / province11% · 7
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)
- Opioid Crisis and Real Estate Prices
Journal of Financial and Quantitative Analysis 2026 · pkg 14125
eventstudyinteract PC_avghomevalue L*event F*event, vce(cluster statefips) absorb(countyfips year) cohort(TreatYear) control_cohort(lastcohort) covariates(l_mal …
- Venture Capital and Startup Agglomeration
The Journal of Finance 2025 · pkg 15592
quiet eststo: reghdfe `y' cont_treatXpost if $SAMPLE, absorb(state_code year) vce(cluster state_code)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quiet eststo: reghdfe `y' cont_treatXpost if ( year>=2010 & year<=2018 & num_funds_PreVol ~=0 ), absorb(state_code year) vce(cluster state_code)
- Climate Adaptation Risk and Capital Structure: Evidence From State Climate Adaptation Plan
Financial Management 2025 · pkg 39349
eststo: quietly reghdfe `y' $key_indep $control , $clustervar1 absorb(sic4 fyear stcode )
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: quietly reghdfe `y' inter treated plan_post ln_assets lnage mtob roa tangibility dvdummy modified_altmanz rd1 gsp_growth blue , vce(cluster stcode) abso …
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
-
two-way: author-named unit + timenames the reader has no word for, commonest first:
absorbid3,aq,area_fips,bapv,bp1,case#firm_product,case#shppanjivaid,casesupp5% · 33 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)
- 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)
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
eventstudyinteract weight_psi g_* g0-g40 if portfolio==-2 , absorb(institutionid dateq#group_state) vce(cluster institutionid dateq) cohort(dateq_Introduced) c …
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
-
bank3% · 2
2 examples in the code
- 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)
- 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)
- Did Banks Pay Fair Returns to Taxpayers on TARP?
The Journal of Finance 2024 · pkg 15993
-
county / city / district3% · 2
2 examples in the code
- Dirty air and green investments: The impact of pollution information on portfolio allocati
Journal of Financial Economics 2026 · pkg 114027
reghdfe brown_sh t_pol_post pol_treated pol_post treat_post pol post treated , a(pincode month) vce(cluster pincode)
- Marijuana Legalization and Firms’ Cost of Equity
Journal of Financial and Quantitative Analysis 2026 · pkg 158618
did_imputation `Y' fips fyear myear, autosample cluster(fips) fe(fyear gvkeyn) maxit(1000) minn(0) tol(0.005)
- Dirty air and green investments: The impact of pollution information on portfolio allocati
Journal of Financial Economics 2026 · pkg 114027
-
firm × time3% · 2
2 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)
- Competition and Debt Conservatism
Journal of Financial and Quantitative Analysis 2026 · pkg 130570
reghdfe `var' c.TREAT##c.POST, noabsorb cluster(firm_cohort_id) keepsingleton
- J’Accuse! Antisemitism and financial markets in the time of the Dreyfus Affair
Journal of Financial Economics 2024 · pkg 14199
-
country2% · 1
1 example in the code
- The Effect of Intellectual Property Rights Protection on Stock Price Informativeness
Journal of Financial and Quantitative Analysis 2026 · pkg 94208
eststo:reghdfe SYNCH POST $FirmlevelCV $CountryCV, absorb(countryid year FZEROrank) vce(cluster countryid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo:reghdfe SYNCH POST SIZE BTM LEV ROA SDROA SIGMA MEANRET ANACOV RD RDMISS FRQ CRLIST FUNDACORR GDPGR LNGDPPC MCAPGDP IFRS LNNFIRM FIRMHHI INDHHI, absorb(c …
- The Effect of Intellectual Property Rights Protection on Stock Price Informativeness
Journal of Financial and Quantitative Analysis 2026 · pkg 94208
-
country × time2% · 1
1 example 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)
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
Share of the 66 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
66 of 73 packages absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).
Main fixed-effect set
-
author-named unitnames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack11% · 74 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
- Ratings Quality and Borrowing Choice
The Journal of Finance 2019 · pkg 15692
reghdfe vwspread_tw over_post over post, absorb(sp_pre , save) vce(`secalc') keepsing;
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe vwspread_tw over_post over post, absorb(sp_pre , save) vce(cluster ngvkey) keepsing
- Currency Mispricing and Dealer Balance Sheets
The Journal of Finance 2021 · pkg 15823
reghdfe logvolume affected_after_zeronet affected_after after_zeronet affected_zeronet zeronet deltabankcds logdealervolume, absorb(dealerid TYPE=customer_curre …
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
author-named unit + timenames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack9% · 64 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 …
- Motivated beliefs about stock returns
Journal of Banking & Finance 2025 · pkg 14666
reghdfe guessup i.owned##i.post##i.treatment bayesian_posterior bayes_down, absorb(idstock i.period) cluster(id)
- Educating Investors about Dividends
Review of Financial Studies 2025 · pkg 81010
reghdfe transaction_volume l(0/4).c.`divvar'##treated##post l(0/4).c.dividends_notws18_21##treated##post monthly_holdings , abs(wofd rfs_id) cluster …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe transaction_volume l(0/4).c.dividends_ws18_21##treated##post l(0/4).c.dividends_notws18_21##treated##post monthly_holdings , abs(wofd rfs_id) cluster(rf …
- Transmission of Information from Private to Public Markets
Journal of Financial and Quantitative Analysis 2026 · pkg 117927
eststo: reghdfe retnxtq post treated post_treated if connection_new==1 & rdate>=date("20000101","YMD") & rdate<=date("20041231","YMD"), absorb(lpno date1) vce(c …
- Macroprudential Policy, Mortgage Cycles, and Distributional Effects: Evidence from the Uni
Review of Financial Studies 2024 · pkg 128
-
firm + time9% · 6
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 …
- Broken Relationships: Derisking by Correspondent Banks and International Trade
Review of Financial Studies 2026 · pkg 81073
reghdfe trade treat_post productivity_cd2 ln_totalassets b_equitytotalasset /// b_roa b_netloansdepst b_loangrowth, absorb(bvd_id year) - Intellectual Property Rights and Debt Financing
Review of Financial Studies 2023 · pkg 129603
eststo: qui reghdfe totdebt_at i.treat##i.post, absorb(gvkey fyear) vce(cluster state)
- Partisanship, optimism, and firm innovation
Financial Management 2024 · pkg 129874
reghdfe log_ttl_pat_cpc_adj c.treated##c.post log_asset roa_ebit m_b_1 ppe_a bdt_a cash_flow rd_s sales_growth, absorb(gvkey fyear) cluster(gvkey)
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
-
industry + time5% · 3
3 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)
- Do Product Market Threats Discipline Corporate Misconduct?
Journal of Financial and Quantitative Analysis 2026 · pkg 39589
eststo: reg logPenalty10_1 Treated_Post Treated Post $FirmControl $FE, vce(cl gvkey)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reg logPenalty10_1 Treated_Post Treated Post logAssets10 MarketLeverage Market_to_Book Tangibility ROA i.fyear i.sic2, vce(cl gvkey)
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
industry × time + author-named unitnames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack5% · 33 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)
- 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
-
author-named unit + author-named unit × timenames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack3% · 22 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)
- J’Accuse! Antisemitism and financial markets in the time of the Dreyfus Affair
Journal of Financial Economics 2024 · pkg 14199
-
bank + time3% · 2
2 examples in the code
- Leverage Regulation and Market Structure: A Structural Model of the U.K. Mortgage Market
The Journal of Finance 2021 · pkg 15818
reghdfe `price' treat3##post , abs(yearq_date lender_id) vce(cluster lender_id yearq_date)
- 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)
- Leverage Regulation and Market Structure: A Structural Model of the U.K. Mortgage Market
The Journal of Finance 2021 · pkg 15818
-
firm + author-named unitnames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack3% · 22 examples in the code
- The Securitization Flash Flood
Review of Corporate Finance Studies 2026 · pkg 81027
reghdfe amount_due post_x_treated treated post_bapcpa scaled_repo_maturity if treated ~=., a(counterparty cik_number) cl(mmmf_x_ibank)
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
eventstudyinteract lev_more5Y pre_4 pre_3 pre_2 post_0 post_1 post_2 post_3 post_4 if `y' == 1 , cohort(first_rwl) control_cohort(never_rwl) absorb(i.gvkey i.y …
- The Securitization Flash Flood
Review of Corporate Finance Studies 2026 · pkg 81027
-
firm + author-named unit × timenames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack3% · 22 examples in the code
- 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)
- Pirates without borders: The propagation of cyberattacks through firms’ supply chains
Journal of Financial Economics 2023 · pkg 14174
reghdfe `Y'_A post_`X' , absorb(firm_id peer_group_sic5#year) cluster(country sic_2digit)
- Do Corporations Retain Too Much Cash? Evidence from a Natural Experiment
Review of Financial Studies 2023 · pkg 136
-
firm × time + author-named unitnames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack3% · 22 examples in the code
- Market Discipline in the Direct Lending Space
Review of Financial Studies 2024 · pkg 210
reghdfe fair_value_ln i.ind_post##i.ind_treated_bdc lag_assets_total_ln lag_debt_to_assets_ratio lag_int_inc_net_avg_assets, absorb(bdc_ticker filingdateqtr com …
- Creditor rights, collateral reuse, and credit supply
Journal of Financial Economics 2023 · pkg 12465
eststo reg1:
- Market Discipline in the Direct Lending Space
Review of Financial Studies 2024 · pkg 210
Share of the 66 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
author-named unitnames the reader has no word for, commonest first:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack58% · 424 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
-
time53% · 39
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
-
firm25% · 18
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 × time18% · 13
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( …
- Pension Fund Equity Investment and Firm Productivity
Journal of Financial and Quantitative Analysis 2026 · pkg 14136
eventstudyinteract `o' _I* $cntrl, absorb(i.cvr i.industry_year) cohort(cohort) control_cohort(controlgroup) vce(cluster cvr)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract `o' _I* age size kintense, absorb(i.cvr i.industry_year) cohort(cohort) control_cohort(controlgroup) vce(cluster cvr)
- Real Effects of Centralized Markets: Evidence from Steel Futures
Review of Financial Studies 2025 · pkg 27
-
industry12% · 9
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)
- Venture Capital and Startup Agglomeration
The Journal of Finance 2025 · pkg 15592
quiet eststo: reghdfe log_size SORTING##c.cont_treated##post $CONTROLS if $SAMPLE_startup /// , absorb(state_code year roundtype found_year industrygroup) vce(c …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quiet eststo: reghdfe log_size SORTING##c.cont_treated##post realgdp_growth log_realgdppp houseprice_growth stem_emp_growth if ( year>=2010 & year<=2018 & num_f …
- Are sustainability-linked loans designed to effectively incentivize corporate sustainabili
Financial Management 2023 · pkg 39043
reg_esg_1 <-feols(msci_score ~ issued_SLL*Post_loan_issuance_treatment_and_control+ as.factor(industry)+as.factor(Country) | year_X , …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
unspecified id (id, i, group...)11% · 8
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)
- Impediments to the Schumpeterian Process in the Replacement of Large Firms
The Journal of Finance 2025 · pkg 16070
reghdfe F20Top20 FascistaAfter After stlnequity stlnAge if Anno>=1921&Anno<=1951& PubliclyTraded==1, absorb(id i.Ss_n i.Anno) cluster(id Anno)
- 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:
filingdateqtr,absorbid2,agemmt,amorttype,analyst,analyst#permno,analyst#pseudoid,area_fips##yr_frack10% · 74 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
-
state / province8% · 6
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 …
- Venture Capital and Startup Agglomeration
The Journal of Finance 2025 · pkg 15592
quiet eststo: reghdfe `y' cont_treatXpost if $SAMPLE, absorb(state_code year) vce(cluster state_code)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quiet eststo: reghdfe `y' cont_treatXpost if ( year>=2010 & year<=2018 & num_funds_PreVol ~=0 ), absorb(state_code year) vce(cluster state_code)
- Climate Adaptation Risk and Capital Structure: Evidence From State Climate Adaptation Plan
Financial Management 2025 · pkg 39349
eststo: quietly reghdfe `y' $key_indep $control , $clustervar1 absorb(sic4 fyear stcode )
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: quietly reghdfe `y' inter treated plan_post ln_assets lnage mtob roa tangibility dvdummy modified_altmanz rd1 gsp_growth blue , vce(cluster stcode) abso …
- Intellectual Property Rights and Debt Financing
Review of Financial Studies 2023 · pkg 129603
eststo: qui reghdfe totdebt_at i.treat##i.post, absorb(ind_year_fe state) vce(cluster state)
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
state / province × time8% · 6
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 …
- Constrained by law: The impact of fiduciary duties on portfolios and prices in US equity m
Journal of Financial Economics 2026 · pkg 80979
eventstudyinteract weight_psi g_* g0-g40 if portfolio==-2 , absorb(institutionid dateq#group_state) vce(cluster institutionid dateq) cohort(dateq_Introduced) c …
- Mergers and acquisitions, technological change, and inequality
Journal of Financial Economics 2025 · pkg 96846
reghdfe `Y' treat post postXtreat est_offshor ,absorb(i.year#i.ind i.year#i.state1 i.udbnum) vce(cluster $cluster)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `Y' treat post postXtreat est_offshor ,absorb(i.year#i.ind i.year#i.state1 i.udbnum) vce(cluster firmid)
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
county / city / district7% · 5
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)
- Opioid Crisis and Real Estate Prices
Journal of Financial and Quantitative Analysis 2026 · pkg 14125
eventstudyinteract PC_avghomevalue L*event F*event, vce(cluster statefips) absorb(countyfips year) cohort(TreatYear) control_cohort(lastcohort) covariates(l_mal …
- Direct lenders in the U.S. middle market
Journal of Financial Economics 2024 · pkg 113347
reghdfe `y' i.ind_post##i.ind_treated es_gr_lag gdp_gr_lag job_gains_lag job_losses_lag estab_middle_market_lag banks_num_office_per_estab_lag hhi_deposits_c_la …
- Dirty air and green investments: The impact of pollution information on portfolio allocati
Journal of Financial Economics 2026 · pkg 114027
reghdfe brown_sh t_pol_post pol_treated pol_post treat_post pol post treated , a(pincode month) vce(cluster pincode)
- Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
Review of Corporate Finance Studies 2023 · pkg 7279
Share of 73 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
reghdfe73% · 53
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
-
eventstudyinteract14% · 10
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 …
- Opioid Crisis and Real Estate Prices
Journal of Financial and Quantitative Analysis 2026 · pkg 14125
eventstudyinteract PC_avghomevalue L*event F*event, vce(cluster statefips) absorb(countyfips year) cohort(TreatYear) control_cohort(lastcohort) covariates(l_mal …
- Financial Effects of Remote Product Delivery: Evidence from Hospitals
Review of Financial Studies 2024 · pkg 146
-
reg12% · 9
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 …
- Brokers and Order Flow Leakage: Evidence from Fire Sales
The Journal of Finance 2019 · pkg 15708
reg rev best_X_post best post
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
did_imputation11% · 8
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
-
areg8% · 6
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
- Testing Disagreement Models
The Journal of Finance 2022 · pkg 15858
qui areg `Y' shock postshock $controls, cluster(firmID) a(firm_waveID)
We recorded this statement as below; the file does not hold it at this line (the code above is the file's):qui areg `Y' shock postshock laglogME i.fqtr i.yq, cluster(firmID) a(firm_waveID)
- Pandemics and Household Cash Withdrawals: Evidence From Transaction Data on Hundreds of Mi
Financial Management 2025 · pkg 39372
areg logamt_cash treat##post logoffline_consum i.eventday_group i.dow if abs(event)>70, a(city_treat) cluster(city_treat)
- Human Capital Reallocation across Firms: Evidence from Idiosyncratic Shocks
Review of Corporate Finance Studies 2025 · pkg 7288
-
xtreg5% · 4
3 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
xtreg `var' i.year c.treat#i.year /// l1lnassets l1tang l1x5_w l1lnbvequity /// ,vce(cluster nit) fe - Testing Disagreement Models
The Journal of Finance 2022 · pkg 15858
qui xi: xtreg `Y' preshock3 preshock2 preshock1 shock postshock1 postshock2 postshock3 postshock4 $controls, cluster(firmID) i(firm_waveID) fe
We recorded this statement as below; the file does not hold it at this line (the code above is the file's):qui xi: xtreg `Y' preshock3 preshock2 preshock1 shock postshock1 postshock2 postshock3 postshock4 laglogME i.fqtr i.yq, cluster(firmID) i(firm_waveID) fe
- Robust difference-in-differences analysis when there is a term structure
Journal of Financial Economics 2025 · pkg 113601
qui xtreg ytm treated##Post i.OwnEL_applydate_num, fe cluster(Laufnummer)
- Funding Liquidity without Banks: Evidence from a Shock to the Cost of Very Short‐Term Debt
The Journal of Finance 2019 · pkg 15700
-
att_gt3% · 2
2 examples in the code
- International trade and the risk in bilateral exchange rates
Journal of Financial Economics 2023 · pkg 14184
out <- att_gt( yname = var, gname = "event_year", idname = "id_isopair", tname = "date_y", xformla = ~ISO1+ISO2, data = dt_reg_tmp, est_method = " …
- Are sustainability-linked loans designed to effectively incentivize corporate sustainabili
Financial Management 2023 · pkg 39043
atts <- att_gt(yname = "msci_score", # LHS variable tname = "year", # time variable idname = "id_name", # id variable …
- International trade and the risk in bilateral exchange rates
Journal of Financial Economics 2023 · pkg 14184
-
csdid3% · 2
2 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)
- Gambling away stability: Sports betting’s impact on vulnerable households
Journal of Financial Economics 2026 · pkg 158585
csdid net_invest, ivar(unique_mem_id) time(qdate) gvar(gvar) notyet
- Mandatory Financial Disclosure and M&A Activity
Review of Financial Studies 2023 · pkg 211
-
ivreg23% · 2
2 examples in the code
- The Capitalization of Consumer Financing into Durable Goods Prices
The Journal of Finance 2021 · pkg 15769
ivreg2 loanterm c.post##c.treat dti origfico if tag==1, cluster(loanym cz)
- Leverage Regulation and Market Structure: A Structural Model of the U.K. Mortgage Market
The Journal of Finance 2021 · pkg 15818
ivreg2 `price' treat3##post , cluster(lender_id yearq_date)
- The Capitalization of Consumer Financing into Durable Goods Prices
The Journal of Finance 2021 · pkg 15769
-
didregress1% · 1
1 example in the code
- The impact of unions on compensation consultants and CEO pay
Financial Management 2025 · pkg 39357
didregress (f1useconsultant logat mtbrW netppeW firmriskW roaW mraw_window_1W lfirmage) (did), group(unionized) aeq time(fyear) vce(cluster gvkey)
- The impact of unions on compensation consultants and CEO pay
Financial Management 2025 · pkg 39357
Share of 73 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)10% · 8
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)
- Employment Under Marijuana
Journal of Financial and Quantitative Analysis 2026 · pkg 46734
, horizons(0/5) pretrends(5) /// controls(`ctrls_event') /// tol(0.001) maxit(1000) autosample avgeffectsby(State) minn(0)
- Broken Relationships: Derisking by Correspondent Banks and International Trade
Review of Financial Studies 2026 · pkg 81073
horizons(0/4) pretrends(4) /// controls(productivity_cd2 ln_totalassets /// b_equitytotalassets /// b_roa b_netloansdepst b_loangrowth ipol*)
- Direct lenders in the U.S. middle market
Journal of Financial Economics 2024 · pkg 113347
global pretrend_qtr = 4
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
event-time (lead/lag) dummies9% · 7
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
- Pension Fund Equity Investment and Firm Productivity
Journal of Financial and Quantitative Analysis 2026 · pkg 14136
xi i.eventtime
- Ratings Quality and Borrowing Choice
The Journal of Finance 2019 · pkg 15692
regress ejr_overrated post_treat treatment post loganalyst_pre i.eventid, vce(cluster eventid ) ;
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
event-study plot8% · 6
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)) ) - Employment Under Marijuana
Journal of Financial and Quantitative Analysis 2026 · pkg 46734
event_plot, /// default_look /// graph_opt( /// xtitle("Periods since the event") /// xlabel(-5(1)5) /// ytitle("Average causal … - Broken Relationships: Derisking by Correspondent Banks and International Trade
Review of Financial Studies 2026 · pkg 81073
event_plot bjs_b#bjs_v, /// stub_lag(tau#) /// stub_lead(pre#) /// plottype(scatter) ciplottype(rcap) /// trimlag(4) trimlead(4) /// togethe … - Financial returns to household inventory management
Journal of Financial Economics 2024 · pkg 101382
foreach prg in astile distplot binscatter geodist did_imputation event_plot /// winsor outreg2 _gwtmean egenmore ftools reghdfe estout listtab …
- Proxy Advisory Firms and Corporate Shareholder Engagement
Review of Financial Studies 2024 · pkg 233
-
heterogeneity-robust estimator (csdid, did_imputation, did_multiplegt, ...)22% · 18
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 bounds0% · 0
-
multiple-testing correction (FDR, Romano-Wolf, ...)1% · 1
1 example 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
- Stakeholder Orientation, Product Market Competition, and the Cost of Equity
Review of Corporate Finance Studies 2026 · pkg 7269
Share of 80 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.