Panel fixed effects
How the design is counted — the same count on the recipe, outcomes and methods pages
- The universe is every replication package our extractors have read (code_model_design) that is linked to a live paper by a confirmed link; the field is the linked paper's.
- A package is in a design when (a) our extractor found the design's identification pattern on a line of code it runs (not a path, a folder macro, an export or an install line), or (b) it runs a model of the design's own estimator family. An ivreg2 / ivreghdfe call with no (endog = z) group counts for neither: it is OLS with robust or HAC errors, not IV.
- Panel fixed effects is the rest: a fixed-effects estimation and none of the other designs. A package can be in several designs (not panel FE).
- A model is an estimation OF the design only when the model itself carries the design's signature; the recipe's estimation choices, the outcomes, the instruments and every example are read from those models.
- This design's signature in a model: a fixed-effects estimation (absorbed effects, xtreg fe, areg, feols | fe).
- 0 packages declare the design in code; 2634 are in it by their estimator (a package can be both).
Adoption over time — the dedicated estimator
Share of each publication year's packages with parsed models that run this estimator at least once (hover for counts). Grey years have fewer than 10 packages and are not a trend; package coverage is thin before ~2010, when journal data policies began.
Validation practice
Of the 2,634 packages in the design, how many run each standard check (read from the code; the same checks and numbers as the recipe). A check run under a macro or in a file we could not read is missed, so these are lower bounds. Greyed: fewer than 10 packages.
What it is used to study
The dependent variables of this design's estimations, read from the model roles we read from the code. Of the 2,634 packages in the design, 2,628 have a model that shows the design itself, and 2,544 of those have a readable outcome (110,970 models; for 845 packages some outcome is read only through a loop's expansion). Shares are of those 2,544 packages, one count per package; greyed rows rest on fewer than 10. An outcome that is a taxonomy measure's variable in the same package is shown as the measure; other names are grouped by what they name. Compare every design →
How this is counted
- The unit is the package: a package counts once for an outcome, measure or instrument type however many of its models carry it; the model count is shown second.
- A design's packages are the ONE design membership every page shows (identification fact on a line of code, or the design's own estimator). Its models are the ones that carry the design's signature in the model itself — a DiD estimator or a treatment × post term, event-time dummies or an abnormal-return outcome, an excluded instrument, an RD estimator or a bandwidth around a cutoff, a matching estimator or matched weights. A package with none of those models is counted in the design but has no outcome here.
- Roles are read from each model's literal row. Only where a literal role still holds a macro (`y', $dep) are the loop-expanded rows written on the same line read for that role; an expanded row whose literal row is resolved adds nothing, and an unresolved role with no expansion is dropped.
- An outcome is a taxonomy measure when the dependent variable is that measure's variable in the same package; otherwise it is grouped by its name (a word list, field-aware for short names like car, q, ret); otherwise it is shown as the bare variable.
- Instruments are the EXCLUDED ones: a term also among the model's regressors is an included control. Types are read from the name (and L. / lag for lagged values). Where the name says nothing (`z`, `shock`, `iv1`), the instrument is traced to the statement in the package that builds it, up to three statements back, and typed by that statement's shape — (total − own)/(n − 1) a leave-out mean, L.x or x[_n-1] a lag, predict after a model a predicted value, a by-group sum of share × shock a shift-share, geodist a distance — or by the name of the one variable it copies or transforms. Products, thresholds and aggregates of other variables are not read, and an instrument nothing reliable types stays untyped. Each such example shows the statement, linked to its line.
Finance — 542 of 556 packages have a readable outcome
-
stock returns / abnormal returns16% · 87written as
ret(13),car(3),ret5(3),return(3),RET(2)4 examples in the code
- Financial Advisors and Investors’ Bias
Review of Financial Studies 2025 · pkg 111
Replication_package_Replication_package_code_main_analysis.do:1228 ·
ret_thismonth_percreghdfe ret_thismonth_perc b2.profile_c##post_platform_month if tag_individual_month==1 & profile!="Not Advised", absorb(numero_compte monthly_date ) cluster(numero_compte)
- Decision Weights for Experimental Asset Prices Based on Visual Salience
Review of Financial Studies 2022 · pkg 122
study1.do:286 ·
returnqui xtreg return vs_return_`i' return_decile convexity, robust cluster(user_id) fe
- Cross-Subsidization of Bad Credit in a Lending Crisis
Review of Financial Studies 2025 · pkg 138
RFS_Replication_code_table_6.do:90 ·
dif_ar_1415reghdfe dif_ar_1415 dif_thr_15 $cvars_dif, abs(Industry) vce(robust)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe dif_ar_1415 dif_thr_15 dif_OROA_1415 dif_lDeposits_1415 dif_lTotalAssets_1415 dif_ratio_CurrLiab_1415, abs(Industry) vce(robust)
- News Diffusion in Social Networks and Stock Market Reactions
Review of Financial Studies 2025 · pkg 145
eststo: quietly reghdfe `y' CEN `s' `ctrlList' `attnList' `dummyList' `locbiasList' if `filter', noabsorb vce(cluster gvkey rdq1)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: quietly reghdfe `y' CEN abs_sue_2_rknew logme logbm idvol ior urban ep2_winsor evol2_winsor nrdq_rk2 rptlag log_xad sp500 retail pop_density sind_p_ctex i.yr i.qtr i.day i.ff10 mean_age_ct ret …
- Financial Advisors and Investors’ Bias
Review of Financial Studies 2025 · pkg 111
-
credit / lending / default13% · 71written as
foreclosure(3),approval_rate(2),default(2),delinquent2(2),ln_total_patents_approved(2)4 examples in the code
- Systemic Risk and Monetary Policy: The Haircut Gap Channel of the Lender of Last Resort
Review of Financial Studies 2024 · pkg 91
replication_files/do_files/RUN_tables.do:808 ·
log_loans_from_oth_bankseststo: reghdfe log_loans_from_oth_banks l_haircut_gap_issued_bonds , /// absorb(mfi_id_issuer date) vce(cluster mfi_id_issuer date ) - Cross-Subsidization of Bad Credit in a Lending Crisis
Review of Financial Studies 2025 · pkg 138
RFS_Replication_code_table_7.do:39 ·
rating_12mAfterreghdfe rating_12mAfter Dif Rating , /// abs(Industry dateq) cluster(customerid)
- Liquidity Constraints, Consumption, and Debt Repayment: Evidence from Macroprudential Poli
Review of Financial Studies 2023 · pkg 141
eststo: quietly reghdfe `var' treat_2_new_an_post treat_all_an_post if d_edu==`k', absorb(custid yearmth) vce(cluster city_num#card_type)
- Rating Agency Fees: Pay to Play in Public Finance?
Review of Financial Studies 2023 · pkg 151
reghdfe rating_fee paidprev if issue_insured != . & rating_num != . & moodyspost051007 != . & fitchpost041005 != . , a(issue_amount_bucket#rater_3#year#type_of_debt_3) resid
- Systemic Risk and Monetary Policy: The Haircut Gap Channel of the Lender of Last Resort
Review of Financial Studies 2024 · pkg 91
-
leverage / debt10% · 56written as
lev(5),leverage(5),late_debt(2),lndebt(2),ltv(2)4 examples in the code
- It Takes Two to Borrow: The Effects of the Equal Credit Opportunity Act on Housing, Credit
Review of Financial Studies 2023 · pkg 84
eststo: reghdfe `yvar' c.`incvar'_share_wife71##i.post71 i.agehgroup i.tincgroups /// i.numkids, absorb(id state_year) cluster(id state)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe `yvar' c.tinc_share_wife71##i.post71 i.agehgroup i.tincgroups i.numkids, absorb(id state_year) cluster(id state)
- Systemic Risk and Monetary Policy: The Haircut Gap Channel of the Lender of Last Resort
Review of Financial Studies 2024 · pkg 91
replication_files/do_files/RUN_tables.do:816 ·
log_total_liabilitieseststo: reghdfe log_total_liabilities l_haircut_gap_issued_bonds , /// absorb( mfi_id_issuer date) vce(cluster mfi_id_issuer date) - Liquidity Constraints, Consumption, and Debt Repayment: Evidence from Macroprudential Poli
Review of Financial Studies 2023 · pkg 141
eststo: quietly reghdfe `var' treat_2_new_post treat_all_post , absorb(custid yearmth) vce(cluster city_num#card_type)
- Human Capital Investment after the Storm
Review of Financial Studies 2023 · pkg 208
statsby _b _se , clear: quietly reghdfe `depvar' /// d2014_x_treat2 d2015_x_treat2 d2016_x_treat2 /* d2017_x_treat2 control */ d2018_x_treat2 d2019_x_treat2 d2020_x_treat2 /// …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):statsby _b _se , clear: quietly reghdfe `depvar' d2014_x_treat2 d2015_x_treat2 d2016_x_treat2 d2018_x_treat2 d2019_x_treat2 d2020_x_treat2 , absorb( i.instlist_ i.dimyear i.insttypelist_#i.dimyear i.r …
- It Takes Two to Borrow: The Effects of the Equal Credit Opportunity Act on Housing, Credit
Review of Financial Studies 2023 · pkg 84
-
sales / output / quantities / productivity10% · 56written as
ln_sales(3),logsales(3),tfp(2),GDP_growth,GROWTH1_sales_w4 examples in the code
- The Labor Market Effects of Loan Guarantee Programs
Review of Financial Studies 2024 · pkg 16
stata-code.do:69 ·
dtfp_0815eststo: reghdfe dtfp_0815 `CONTROLS' `FCONTROLS' [aw=effsalm], a(`FE') cl(`CL')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe dtfp_0815 disfrontier dln_value1_22010 dln_value2_22010 dln_value4_22010 dln_value5_22010 dln_value6_22010 dln2_vaht_non_pme_pc_full dln_gross_loans lnfirmage lnat prof divs ppe_to_ass …
- How Has COVID-19 Impacted Research Production in Economics and Finance?
Review of Financial Studies 2023 · pkg 69
Replication Code.do:84 ·
productivityreghdfe productivity post if main_sample==1, a(authorID month_posted) cluster(authorID date_posted_m)
- Product Innovation and Credit Market Disruptions
Review of Financial Studies 2023 · pkg 129
eststo: reghdfe lnrev c.std#c.crisis_cohort if survival1yr==1, absorb(g firm) vce(cl st)
- What Problem Do Intermediaries Solve? Evidence From Real Estate Markets
Review of Financial Studies 2026 · pkg 134
Replication_Package_code_RFS_RedX.do:5110 ·
logsaleseststo: reghdfe logsales iqip pricecontrol logpredictedprice if num==1 & zillowmatched==1 & product<., cluster(county cw) absorb(cm#county totnew)
- The Labor Market Effects of Loan Guarantee Programs
Review of Financial Studies 2024 · pkg 16
-
employment / labour supply10% · 52written as
g_emp(2),hours(2),log_emp(2),logemp(2),working(2)4 examples in the code
- The Labor Market Effects of Loan Guarantee Programs
Review of Financial Studies 2024 · pkg 16
stata-code.do:66 ·
demp0810eststo: reghdfe demp0810 `CONTROLS' `FCONTROLS' [aw=effsalm], a(`FE') cl(`CL')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe demp0810 disfrontier dln_value1_22010 dln_value2_22010 dln_value4_22010 dln_value5_22010 dln_value6_22010 dln2_vaht_non_pme_pc_full dln_gross_loans lnfirmage lnat prof divs ppe_to_asse …
- Firm-Level Exposure to Epidemic Diseases: COVID-19, SARS, and H1N1
Review of Financial Studies 2023 · pkg 83
reghdfe lemp_w time demand negsupply ${controls} /// , vce(cluster firm_id) summarize(mean) absorb(i.firm_id)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe lemp_w time demand negsupply latpre , vce(cluster firm_id) summarize(mean) absorb(i.firm_id)
- It Takes Two to Borrow: The Effects of the Equal Credit Opportunity Act on Housing, Credit
Review of Financial Studies 2023 · pkg 84
reghdfe working i.high_dsti_wo /// if spouse == "w" & inrange(year, 1969, 1985), /// absorb(agew state id reg_trend) cluster(id state)
- Quick or Broad Patents? Evidence from U.S. Startups
Review of Financial Studies 2022 · pkg 153
reghdfe growth`i'_`var'_w $controls (pat_clm_ct lag_app_to_first_action=instrument_lag instrument_ind_claims) if $filters, absorb(i.state_num ind_year_fe) cluster(gau) old
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe growth`i'_`var'_w ln_initial_`var' (pat_clm_ct lag_app_to_first_action=instrument_lag instrument_ind_claims) if nexamined>=10 & tc<39 & year_action<2010 & rounds_before_patent_FA<5 & patent_ap …
- The Labor Market Effects of Loan Guarantee Programs
Review of Financial Studies 2024 · pkg 16
-
profitability (ROA, ROE, margins, earnings)10% · 52written as
roa(11),ROA(3),ROA_1(2),ROA_5(2),ROE(2)4 examples in the code
- Build or Buy? Human Capital and Corporate Diversification
Review of Financial Studies 2025 · pkg 197
3c_Performance_regressions.do:514 ·
Droa_siren_wreghdfe Droa_siren_w HC_distance_t1_s_brut diversity_t1 size_t1 vaj_eff_t1 /* */ immo_eff_t1 sal_eff_t1 tresact_eff_t1 if delta_b==7&buy==0& sample == 1, /* */ absorb(code_entry_num apgr_1 year) clu …
- Man versus Machine Learning Revisited
Review of Financial Studies 2025 · pkg 271
mdl1 = PanelOLS.from_formula('EPS_true_q1~1 + EPS_ana_q1+EPS_ana_q2+Forecast_q1+Forecast_q2', data=df_.set_index(['permno','YearMonth'])).fit(cov_type='clustered', cluster … - Remotely Productive: The Efficacy of Remote Work for Executives
Review of Financial Studies 2026 · pkg 295
Figures.do:211 ·
roareghdfe roa ev_m3 ev_m2 ev_m1 ev_p1 ev_p2 ev_p3, absorb(gvkey year) vce(cluster gvkey)
- Deregulating Innovation Capital: The Effects of the JOBS Act on Biotech Startups
Review of Corporate Finance Studies 2023 · pkg 7239
reghdfe `var' post_jobs, a(state target)
- Build or Buy? Human Capital and Corporate Diversification
Review of Financial Studies 2025 · pkg 197
-
interest rates / spreads / yields9% · 50written as
spread(6),interest_rate(3),log_spread(3),yield(3),STOCK10_over_10y_yield(2)4 examples in the code
- Conflicts of Interest in Municipal Bond Advising and Underwriting
Review of Financial Studies 2024 · pkg 19
eststo new1: reghdfe spread dual_bd adv_bid advisor_bidder UR effective_rate ltotal_spend lgdp if post == 0 & bondfunding == "GO"& istaxable == 0, a(i.year i.fips i.matbins ) cl(issuer)
- Systemic Risk and Monetary Policy: The Haircut Gap Channel of the Lender of Last Resort
Review of Financial Studies 2024 · pkg 91
eststo: reghdfe spread expected_haircut_gap log_val_iss log_resmat , /// absorb( date rating_best ) vce(cluster date ) - Equity Return Expectations and Portfolios: Evidence from Large Asset Managers
Review of Financial Studies 2024 · pkg 99
Dahlquist_Ibert_replication/code/4. SPF incl. Table 11.do:101 ·
STOCK10_over_10y_yieldeststo: reghdfe STOCK10_over_10y_yield log_LCAPE, absorb(ID) vce(cluster ID Date)
- Liquidity Constraints, Consumption, and Debt Repayment: Evidence from Macroprudential Poli
Review of Financial Studies 2023 · pkg 141
eststo: quietly reghdfe `var' treat_2_new_post treat_all_post , absorb(custid yearmth) vce(cluster city_num#card_type)
- Conflicts of Interest in Municipal Bond Advising and Underwriting
Review of Financial Studies 2024 · pkg 19
-
investment / capex / R&D8% · 45written as
inv(4),capex(3),rd(3),investment(2),Capx_E4 examples in the code
- Regulatory Intensity and Firm-Specific Exposure
Review of Financial Studies 2023 · pkg 47
noisily eststo: reghdfe `outcome' L.(Burden $controls_firm), absorb(i.year#i.ff48 i.gvkey) vce(cluster gvkey)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):noisily eststo: reghdfe `outcome' L.(Burden Assets TobinQ CF MTB), absorb(i.year#i.ff48 i.gvkey) vce(cluster gvkey)
- Decision Weights for Experimental Asset Prices Based on Visual Salience
Review of Financial Studies 2022 · pkg 122
study1.do:37 ·
invxtreg inv corr_VS, robust cluster(user_id) fe //Naked model
- Remotely Productive: The Efficacy of Remote Work for Executives
Review of Financial Studies 2026 · pkg 295
Tables.do:726 ·
rdreghdfe rd remote, absorb(gvkey ceo_id industry_year) cluster(gvkey)
- Deregulating Innovation Capital: The Effects of the JOBS Act on Biotech Startups
Review of Corporate Finance Studies 2023 · pkg 7239
reghdfe `var' post_jobs, a(state target)
- Regulatory Intensity and Firm-Specific Exposure
Review of Financial Studies 2023 · pkg 47
Economics — 1902 of 1,976 packages have a readable outcome
-
employment / labour supply13% · 246written as
employed(13),emp(11),hours(7),lemp(7),work(6)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
dofiles/Table B1.do:36 ·
work(loop-expanded: y_var=work; sample=noretirescheme == 1 & urban_area == 0)reghdfe `y_var' treat $CONTROL_VAR if `sample', a(gbcode) cluster(gbcode)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `y_var' treat men i.educ age age2 i.year if `sample', a(gbcode) cluster(gbcode)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
ReplicationPackageFinal_2_Code__4_TableA1.do:31 ·
ln_job_eng_sbrutreghdfe ln_job_eng_sbrut E_???? if $cond_accept, a(ZE2010#year gp) cl(gp)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe ln_job_eng_sbrut E_???? if NAF_labex_accept == 1 & ZE_labex_accept == 1, a(ZE2010#year gp) cl(gp)
- Peer Effects and the Gender Gap in Corporate Leadership: Evidence from MBA Students
Quarterly Journal of Economics 2026 · pkg 7367
areg children_effect_work_dummy_`i' femaleshare, ab(Class) cluster(section_id)
- The Deposits Channel of Monetary Policy
Quarterly Journal of Economics 2017 · pkg 7368
replication_code_analysis_cra_020117.do:183 ·
d1_lnempreghdfe d1_lnemp d1_ffm_herfdepcty_amt herfdepcty_amt, absorb(fips year fipszero) cluster(fips) tolerance(0.00001) maxiterations(100000)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
demographics (often balance / covariate checks)10% · 187written as
age(30),female(28),male(20),married(18),black(15)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
dofiles/Table B3.do:22 ·
lnhhsizeareg lnhhsize treat $CONTROL_VAR if rural & `age_group', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg lnhhsize treat men i.educ age age2 i.year if rural & `age_group', a(countyID) cluster(cntygb)
- Peer Effects and the Gender Gap in Corporate Leadership: Evidence from MBA Students
Quarterly Journal of Economics 2026 · pkg 7367
code_analysis_replication_appendix.do:7540 ·
contacts_female_share(loop-expanded: y=contacts_female_share)eststo `y': areg `y' femaleshare,ab(Class) cluster(section_id)
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
qui reghdfe `x' private if amb==1 & extra==0, absorb(fe850 year month priout) vce(cluster fe850)
- Inflammatory Political Campaigns and Racial Bias in Policing
Quarterly Journal of Economics 2023 · pkg 7399
Do_Figure2.do:61 ·
black_psreghdfe black_ps 1.TRUMP_PRE_* 1.TRUMP_0 1.TRUMP_POST_* [w=n_stops], a(i.county_fips i.day_id i.county_fips#c.day_id) cluster(county_fips day_id)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
education / test scores10% · 182written as
literacy(4),class_size(3),college(3),dropout(3),educ(3)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
reghdfe `z' treat if `sample' ,a(gbcode gender_child#age_child year) cluster(gbcode)
- Implicit Stereotypes: Evidence From Teachers’ Gender Bias
Quarterly Journal of Economics 2019 · pkg 7410
areg `var' female stdinvalsi_ita8 stdinvalsi_ita82 if stereotype_ita!=. & stdinvalsi_ita8!=., absorb(classe8_f) robust cluster(INS_ITA8)
- Moral Hazard: Experimental Evidence from Tenancy Contracts
Quarterly Journal of Economics 2019 · pkg 7443
qui xi: areg `x' i.tt_r, a(superstrata) cl(club_id);
- The Impact of Public School Choice: Evidence from Los Angeles’s Zones of Choice
Quarterly Journal of Economics 2024 · pkg 7446
reghdfe `char' treat [aweight=numStudents], absorb(endyear) vce(cluster preferredlocationcode)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
wages / earnings9% · 180written as
wage(11),lwage(10),logwage(9),ln_wage(8),log_wage(7)4 examples in the code
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
do/2_1_firm_main.do:76 ·
ln_wageseststo ln_wages_r`r': quietly reghdfe ln_wages `events' `rwgt' if `rsamp', absorb(firm_tin i.eventyr##i.year `r`r'') vce(cluster double_cluster2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo ln_wages_r`r': quietly reghdfe ln_wages tm4 tm3 tm2 tm0 tp1 tp2 tp3 tp4 mwind [pw=lnwages_base] if balanced2==1 & year>2009, absorb(firm_tin i.eventyr##i.year `r`r'') vce(cluster double_cluster …
- Measuring the Equilibrium Impacts of Credit: Evidence from the Indian Microfinance Crisis
Quarterly Journal of Economics 2021 · pkg 7387
BrezaKinnan_Replication/DoFiles/Household_regressions.do:104 ·
hh_wkly_earn_win1(loop-expanded: i=dum; y=hh_wkly_earn_win1)areg `y' exposure`i' i.round $controls_M [pweight=weight], absorb(state_dist) vce(cluster state_dist)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `y' exposure`i' i.round c.hh_pc_cons_m_ea_66#i.round c.casual_wage_66#i.round i.round i.month i.hh_size_pctile c.num_hh_rural_dumX6* c.num_hh_rural_2_dumX6* i.GLP_2008_rural_*_dumX6* i.GLP_2010_r …
- Sexual Harassment and Gender Inequality in the Labor Market
Quarterly Journal of Economics 2022 · pkg 7420
xi: reghdfe `var' `treat' [pw=gen_edu2_alder5_w ] if `sample' ==1 , abs( sektor ind_code)
- The Growing Importance Of Social Skills In The Labor Market
Quarterly Journal of Economics 2017 · pkg 7424
areg ln_hrwage2012 math_onet socskills_onet ln_hrwage1980 if sample==1, /// absorb(all_FE) vce(cluster occ)
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
-
sales / output / quantities / productivity9% · 171written as
log_sales(7),lq(6),revenue(4),sales(4),tfp(4)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
dofiles/Figure-4.do:41 ·
lngdp_perreghdfe lngdp_per [aw = pop] , a(code year) res(res_lngdp_per)
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
replication kit/BVX_Final_Tables_Figures_Annual.do:3780 ·
rgdp_gr_pktr(loop-expanded: Y=rgdp_gr_pktr)eststo d_`Y': reghdfe `Y' bank_ret_pktr if smp==1 , absorb(prewar) vce(robust)
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
code_figs_Small_Business_Revenue_Small_Business_Revenue_-_Change_in_Revenue_in_April_2020_vs_Rent_Binscatter_with_Sector:69 ·
wins_revenue_reg wins_revenue_ med_2br_2018 [w = pop_2018], absorb(sector)
- Capitalists in the Twenty-First Century
Quarterly Journal of Economics 2019 · pkg 7496
Capitalists_online_code/analysis/stata/do/programs_inside.do:623 ·
va(loop-expanded: yvar=va; absorbvar=none)qui areg `yvar' [w=one_tinnumrows_allfirms], absorb(`absorbvar')
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
income / consumption / wealth / inequality8% · 144written as
gini(4),inc(4),income(3),poor(3),assets(2)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
dofiles/Figure-B1---Figure-B2---Figure-B3.do:77 ·
ln_hh_inc(loop-expanded: y_var=ln_hh_inc; age_group=1; sample=rural & age >= 60)areg `y_var' treat $CONTROL_VAR if `sample' & `age_group', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `y_var' treat men i.educ age age2 i.year if `sample' & `age_group', a(countyID) cluster(cntygb)
- The Deposits Channel of Monetary Policy
Quarterly Journal of Economics 2017 · pkg 7368
replication_code_banks_020117.do:65 ·
d1_assetsreghdfe d1_assets d1_ff_l1_herfdepcty l1_herfdepcty, absorb(cert quar certzero) vce(cluster cert) tolerance(0.00001) maxiterations(100000)
- Regressive Sin Taxes, with an Application to the Optimal Soda Tax
Quarterly Journal of Economics 2019 · pkg 7396
areg lnIncome lncountyIncome L1lncountyIncome L2lncountyIncome L3lncountyIncome i.year [pw=projection_factor], /// absorb(HHxCounty) vce(cluster county) - Inflammatory Political Campaigns and Racial Bias in Policing
Quarterly Journal of Economics 2023 · pkg 7399
Do_Table3.do:10 ·
ihsincreghdfe ihsinc 1.TRUMP_0 1.TRUMP_POST_1_30 1.TRUMP_PRE_M30 1.TRUMP_POST_M30 [aweight=incidents], a(i.county_fips i.date) cluster(county_fips date)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
prices / inflation / rents7% · 130written as
lnprice(11),price(11),ln_price(9),log_price(9),lnp(4)4 examples in the code
- Capital Obsolescence and Agricultural Productivity
Quarterly Journal of Economics 2021 · pkg 7502
Empirics/MP_Table-10_PTM.do:148 ·
ln_pricextreg ln_price `reg0', re vce(robust)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtreg ln_price GDPrel, re vce(robust)
- The More We Die, The More We Sell? A Simple Test of the Home-Market Effect
Quarterly Journal of Economics 2019 · pkg 7592
26222_Public/Analysis/EpsBootstrap.do:29 ·
lnpricereghdfe lnprice lndist, absorb(mol#corp#gbd) vce(cluster sales_country dest_country)
- Busting The “Princelings”: The Campaign Against Corruption In China’S Primary Land Market
Quarterly Journal of Economics 2019 · pkg 7673
Tables_Figures.do:36 ·
lnpriceeststo: xi: reghdfe lnprice princeling quality lnarea, ab(cityyearusage ind month salemethod state size) cluster(provid firmid) keepsin
- Rising Markups and the Role of Consumer Preferences
Journal of Political Economy 2025 · pkg 7745
code/11b_Estimation_Routine.R:652 ·
priceseval(parse(text = paste0("hausman.first = fixest::feols(prices ~ iv_hm | ", set.fe, ", data = movements)")))
- Capital Obsolescence and Agricultural Productivity
Quarterly Journal of Economics 2021 · pkg 7502
-
health / mortality6% · 107written as
death(5),imr(4),birthweight(3),lbw(3),health(2)4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
dofiles/Figure-B1---Figure-B2---Figure-B3.do:77 ·
smoke_current(loop-expanded: y_var=smoke_current; age_group=1; sample=rural & age >= 60)areg `y_var' treat $CONTROL_VAR if `sample' & `age_group', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `y_var' treat men i.educ age age2 i.year if `sample' & `age_group', a(countyID) cluster(cntygb)
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
qui reghdfe `x' private if amb==1 & extra==0, absorb(fe850 year month priout) vce(cluster fe850)
- Regressive Sin Taxes, with an Application to the Optimal Soda Tax
Quarterly Journal of Economics 2019 · pkg 7396
ALT_Replication/Code/Analysis/BiasEffects.do:233 ·
health_importance_Av(loop-expanded: var=health_importance)areg `var'_Av Knowledge1 SelfControl_RatedBy1 $PVControls1 lnIncome lnEduc $OtherControls /// [pw=PVSampleWeight1], absorb(county) vce(robust), if `var'2!=. // Limit to households with two respond …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `var'_Av Knowledge1 SelfControl_RatedBy1 taste_sweet_fruit1 taste_soda1 taste_tea1 taste_sports1 taste_energy1 taste_fruit_juice1 taste_diet1 health_importance1 lnIncome lnEduc subinstr("subinstr … - The Effects of Gender Integration on Men: Evidence from the U.S. Military
Quarterly Journal of Economics 2026 · pkg 7477
Greenberg_Wasserman_Weber_Replication_Materials/do/appendix_figures.do:315 ·
no_sany_injury_win2(loop-expanded: var=no_sany_injury_win2)reghdfe `var' $lead $lag if fy_start < $mxyr, absorb(uic5 dmsl17_fy file_mth_start) cluster(uic5 pid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `var' lead5plus lead4 lead3 lead1 lag0 lag1 lag2plus if fy_start < 2022 - 2 + 1, absorb(uic5 dmsl17_fy file_mth_start) cluster(uic5 pid)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)
- Return on Assets (ROA) 11 packages · 55 models
4 examples in the code
- Joining Forces: The Spillover Effects of EPA Enforcement Actions and the Role of Socially
Review of Financial Studies 2023 · pkg 144
reghdfe roa treat_post1_reduonsite treat_post1 size bm lev , absorb( gvkey1#cohort year#cohort) vce(cluster gvkey1 )
- Decoding Momentum Spillover Effects
Journal of Financial and Quantitative Analysis 2026 · pkg 14153
eststo: reghdfe roa cf_day_stand cf_night_stand $controls , absorb(year_quarter) vce(cluster permno year_quarter)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe roa cf_day_stand cf_night_stand ret_day_stand ret_night_stand size_stand logbm_stand mom_stand , absorb(year_quarter) vce(cluster permno year_quarter)
- Securing technological leadership? The cost of export controls on firms
Journal of Financial Economics 2026 · pkg 14263
n1<-felm(ebit_at~treated_dummy:post_dummy|cohort_firm+cohort_sic_year|0|supplier_cusip8+year, sample_dt_friend) - Thirty Years of Change: The Evolution of Classified Boards
The Journal of Finance 2025 · pkg 16138
reghdfe oroa c.treat##ib2.diff if yg1==`i', a(gvkeyn#jyear fyear#jyear) cluster(gvkeyn#jyear)
- Joining Forces: The Spillover Effects of EPA Enforcement Actions and the Role of Socially
Review of Financial Studies 2023 · pkg 144
- Log Total Assets 7 packages · 66 models
4 examples in the code
- Signals and stigmas from banking interventions: Lessons from the Bank Holiday of 1933
Journal of Financial Economics 2025 · pkg 16125
xi: xtreg lnassets i.reopenedMarch*i.yr i.FedDistrict*i.yr i.yr*lntotpop, fe cluster(gp)
- Do Credit Supply Shocks Affect Employment in Middle-Income Countries?
American Economic Journal: Economic Policy 2023 · pkg 16293
xi: reghdfe log_emp sh_county $controls [w=weights], absorb(zone_code year) cluster(zone_code) resid
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: reghdfe log_emp sh_county c.year#c.frac_illiterate c.year#c.frac_water c.year#c.frac_dirtfloor [w=weights], absorb(zone_code year) cluster(zone_code) resid
- Corporate Tax Breaks and Executive Compensation
American Economic Journal: Economic Policy 2023 · pkg 16998
eststo: reghdfe ln_at bonus_tax adj_DPAD2 $local_controls ln_xrd if sample ==1, absorb(fyear firm_fe) vce(cluster irs_ind)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe ln_at bonus_tax adj_DPAD2 ETI ln_xrd if sample ==1, absorb(fyear firm_fe) vce(cluster irs_ind)
- The Births, Lives and Deaths of Corporations in Late Imperial Russia
The Economic Journal 2024 · pkg 36093
ICPSR_196009-V1.1/Results_Catchup.do:41 ·
LogTotalAssetsxi: xtreg LogTotalAssets AgeDummy1 AgeDummy2 AgeDummy3 AgeDummy4 AgeDummy5 AgeDummy6 AgeDummy7 AgeDummy8 AgeDummy9 AgeDummy10 i.AccountingYear1 i.Group EntryCohort1890 EntryCohort1891 EntryCohort1892 …
- Signals and stigmas from banking interventions: Lessons from the Bank Holiday of 1933
Journal of Financial Economics 2025 · pkg 16125
- Cash Holdings 6 packages · 55 models
4 examples in the code
- Rising Intangible Capital, Shrinking Debt Capacity, and the U.S. Corporate Savings Glut
The Journal of Finance 2022 · pkg 15871
qui xi: xtreg `var'Raw i.year, fe
- Trust in Cultural Institutions and Interfirm Cooperation: Evidence from Religious Scandals
Journal of Financial and Quantitative Analysis 2026 · pkg 39652
Do_TablesFigures.do:619 ·
cashatqui reghdfe cashat $did hhi lnat age rdat blev profit , absorb( id#event eventyear#event ) vce(cluster dio_num#event ), if s1==1
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe cashat postscan removal post catholic cathscan postcath postcathscan hhi lnat age rdat blev profit , absorb( id#event eventyear#event ) vce(cluster dio_num#event ), if s1==1
- Carbon Emissions and the Bank-Lending Channel
Review of Financial Studies 2026 · pkg 39697
code/09_code_full.do:230 ·
liq_atreghdfe liq_at $mainp $cntrls if debtflag==1 & include~=. , absorb(firmfe timefe) vce(cluster $cluster)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe liq_at log_s1_1314_dem_fcommitted fcommitted c.postfirst#c.log_s1_1314_dem c.evercommit#c.log_s1_1314_dem postfirst evercommit log_s1_1314_dem ca_1314_logassets_fcommitted fcommitted c.postfir …
- Debt market friction, firm-specific knowledge capital accumulation and macroeconomic impli
Review of Economic Dynamics 2017 · pkg 49765
quietly xtreg F.che_a Rk_a i_a rdpositive F.i.fyear F.i.shortsic, fe vce(cluster lpermno)
- Rising Intangible Capital, Shrinking Debt Capacity, and the U.S. Corporate Savings Glut
The Journal of Finance 2022 · pkg 15871
- Book Leverage 5 packages · 12 models
4 examples in the code
- Corporate Tax Breaks and Executive Compensation
American Economic Journal: Economic Policy 2023 · pkg 16998
eststo: reghdfe debt_ratio bonus_tax adj_DPAD2 $local_controls ln_at if sample ==1, absorb(fyear firm_fe) vce(cluster irs_ind)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe debt_ratio bonus_tax adj_DPAD2 ETI ln_at if sample ==1, absorb(fyear firm_fe) vce(cluster irs_ind)
- Trust in Cultural Institutions and Interfirm Cooperation: Evidence from Religious Scandals
Journal of Financial and Quantitative Analysis 2026 · pkg 39652
Do_TablesFigures.do:640 ·
blevqui reghdfe blev $did lnat hhi age profit rdat , absorb( id#event eventyear#event ) vce(cluster dio_num#event ), if s1==1
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe blev postscan removal post catholic cathscan postcath postcathscan lnat hhi age profit rdat , absorb( id#event eventyear#event ) vce(cluster dio_num#event ), if s1==1
- Carbon Emissions and the Bank-Lending Channel
Review of Financial Studies 2026 · pkg 39697
code/09_code_full.do:222 ·
leverage_qreghdfe leverage_q $mainp $cntrls if debtflag==1 & include~=. , absorb(firmfe timefe) vce(cluster $cluster)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe leverage_q log_s1_1314_dem_fcommitted fcommitted c.postfirst#c.log_s1_1314_dem c.evercommit#c.log_s1_1314_dem postfirst evercommit log_s1_1314_dem ca_1314_logassets_fcommitted fcommitted c.pos …
- Fragile New Economy: Intangible Capital, Corporate Savings Glut, and Financial Instability
American Economic Review 2025 · pkg 90093
data_codes/empirical/firm/Table 5, D1.do:29 ·
leverageeststo: reghdfe leverage INTAN_TA_group_10bins /// EBITDA OCF inventory cash_assets real_size tobins_q /// if (fyear >= 1980 & fyear <= 2019), /// absorb(fyear, savefe) vce(cluster gvkey fyear)
- Corporate Tax Breaks and Executive Compensation
American Economic Journal: Economic Policy 2023 · pkg 16998
- Capital Expenditure 5 packages · 34 models
4 examples in the code
- Do Managers of U.S. Defined Benefit Pension Plan Sponsors Use Regulatory Freedom Strategic
Journal of Accounting Research 2017 · pkg 12524
xtscc capex1 OCFa1 total_tot_contr_at1 lagQ d2 d3 d4 d5 d6 d7 d8 d9, fe
- Tax Policy and Abnormal Investment Behavior
Review of Financial Studies 2024 · pkg 39812
replication_code_appendix_kinky.do:476 ·
capx2ateststo cf: xi: qui areg capx2at cf2at lq i.fyear, absorb(gvkey) cluster(gvkey)
- Investor demand, firm investment, and capital misallocation
Journal of Financial Economics 2025 · pkg 96759
eststo: quietly areg inv_rate sstkA i.fyear, absorb(gvkey) vce(cluster gvkey)
- Production complementarity and information transmission across industries [✰ ]
Journal of Financial Economics 2024 · pkg 113156
eststo: reghdfe `v' StrongComplementors IndustryPeersAverage, a(gvkey2 year) cl(gvkey2)
- Do Managers of U.S. Defined Benefit Pension Plan Sponsors Use Regulatory Freedom Strategic
Journal of Accounting Research 2017 · pkg 12524
- R&D Intensity 5 packages · 26 models
4 examples in the code
- The Innovation and Reporting Consequences of Financial Regulation for Young Life-Cycle Fir
Journal of Accounting Research 2022 · pkg 12622
xtreg rd postsox_intro $controls i.fyear, fe cluster(gvkey)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtreg rd postsox_intro size hp_index litrisk instit_own roa i.fyear, fe cluster(gvkey)
- Thirty Years of Change: The Evolution of Classified Boards
The Journal of Finance 2025 · pkg 16138
reghdfe $Y ib1.agej if yg1==`i', cluster(gvkeyn)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe rds ib1.agej if yg1==`i', cluster(gvkeyn)
- Production complementarity and information transmission across industries [✰ ]
Journal of Financial Economics 2024 · pkg 113156
eststo: reghdfe `v' StrongComplementors IndustryPeersAverage, a(gvkey2 year) cl(gvkey2)
- Patent Publication and Innovation
Journal of Political Economy 2023 · pkg 130527
RD_Analysis.do:207 ·
rd_saleareg rd_sale i.post2##c.gap_wt3 size tobinq_w roa2_w loss lev_w i.year if sale>=10 & year>=1998 & year<=2003, absorb(permno) vce(cluster permno)
- The Innovation and Reporting Consequences of Financial Regulation for Young Life-Cycle Fir
Journal of Accounting Research 2022 · pkg 12622
- Sales Growth 5 packages · 15 models
4 examples in the code
- Credit Supply Shocks: Financing Real Growth or Takeovers?
Review of Corporate Finance Studies 2024 · pkg 7263
Replication package/Code/07 Real Effects adj for inorganic growth (Table 3, Figure 4).do:222 ·
g_salequi: eststo m1: reghdfe g_sale Sec_Active_FE switch num_lender_LN $Contr1 if JUNK_95_FE == 1, absorb(gvkey sic1_time_fe) cluster(gvkey fyear)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui: eststo m1: reghdfe g_sale Sec_Active_FE switch num_lender_LN ln_at_lag lev_lag prof_lag tang_lag if JUNK_95_FE == 1, absorb(gvkey sic1_time_fe) cluster(gvkey fyear)
- Sexism, Culture, and Firm Value: Evidence from the Harvey Weinstein Scandal and the #MeToo
Journal of Accounting Research 2024 · pkg 12699
reghdfe `x' 1.post#c.female_exec_share lnat , absorb(firmid yq##sic2) vce(cluster firmid yq)
- Decoding Momentum Spillover Effects
Journal of Financial and Quantitative Analysis 2026 · pkg 14153
eststo: reghdfe sale_growth cf_day_stand cf_night_stand $controls , absorb(year_quarter) vce(cluster permno year_quarter)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe sale_growth cf_day_stand cf_night_stand ret_day_stand ret_night_stand size_stand logbm_stand mom_stand , absorb(year_quarter) vce(cluster permno year_quarter)
- Production complementarity and information transmission across industries [✰ ]
Journal of Financial Economics 2024 · pkg 113156
eststo: reghdfe `v' StrongComplementors IndustryPeersAverage, a(gvkey2 year) cl(gvkey2)
- Credit Supply Shocks: Financing Real Growth or Takeovers?
Review of Corporate Finance Studies 2024 · pkg 7263
- Asset Growth 3 packages · 8 models
3 examples in the code
- Credit Supply Shocks: Financing Real Growth or Takeovers?
Review of Corporate Finance Studies 2024 · pkg 7263
qui: eststo m1: reghdfe g_at Sec_Active_FE switch num_lender_LN $Contr1 if JUNK_95_FE == 1, absorb(gvkey sic1_time_fe) cluster(gvkey fyear)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui: eststo m1: reghdfe g_at Sec_Active_FE switch num_lender_LN ln_at_lag lev_lag prof_lag tang_lag if JUNK_95_FE == 1, absorb(gvkey sic1_time_fe) cluster(gvkey fyear)
- Decoding Momentum Spillover Effects
Journal of Financial and Quantitative Analysis 2026 · pkg 14153
eststo: reghdfe asset_growth cf_day_stand cf_night_stand $controls , absorb(year_quarter) vce(cluster permno year_quarter)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe asset_growth cf_day_stand cf_night_stand ret_day_stand ret_night_stand size_stand logbm_stand mom_stand , absorb(year_quarter) vce(cluster permno year_quarter)
- Gradual information diffusion across commonly owned firms
Journal of Financial Economics 2024 · pkg 113231
reghdfe ag mgrag size bm, absorb(PERMNO fyear) vce(cluster PERMNO fyear)
- Credit Supply Shocks: Financing Real Growth or Takeovers?
Review of Corporate Finance Studies 2024 · pkg 7263
- Tobin's Q / Market-to-Book 3 packages · 84 models
3 examples in the code
- Blood in the water: The value of antitakeover provisions during market shocks
Journal of Financial Economics 2022 · pkg 12445
reghdfe mb comb qobs, a(fqtr gvkeyn)
- Zombie Board: Board Tenure and Firm Performance
Journal of Accounting Research 2018 · pkg 12550
MainCode_JAR.DO:264 ·
tobinxi:areg tobin tenure_avg_outsider tenure2_avg_outsider $control2a $control2b i.fyear,abs(gvkey) cluster(gvkey)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi:areg tobin tenure_avg_outsider tenure2_avg_outsider tenure_sd_outsider ceoage ceotenure ceopctowned I_ceofounder I_ceochair cboard I_boardind num_busy I_interlock num_dir salegrowth_lag ln_roa_g_la …
- Thirty Years of Change: The Evolution of Classified Boards
The Journal of Finance 2025 · pkg 16138
reghdfe $Y cbv $controls2a if agek==`i', a(sic2 fyear) cluster(gvkeyn)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe mb cbv z_lnassets1 z_io z_de z_sp if agek==`i', a(sic2 fyear) cluster(gvkeyn)
- Blood in the water: The value of antitakeover provisions during market shocks
Journal of Financial Economics 2022 · pkg 12445
- Big 4 Auditor 2 packages · 5 models
2 examples in the code
- The Impact of Credit Market Development on Auditor Choice: Evidence from Banking Deregulat
Journal of Accounting Research 2024 · pkg 12677
BDAC STATA program.do:36 ·
bignareg bign sposttreat i.fyearcohort, absorb (gvkeycohort) robust cluster (stateyear) //without control variables
- Strategic (Inconsistent) Disclosures and Sophisticated Investors: Evidence from Hedge Fund
Journal of Accounting Research 2026 · pkg 12760
qui: eststo `y'_3: reghdfe `y' inconsistent_any problem_fund logsize largefamily , absorb(style) vce(robust)
- The Impact of Credit Market Development on Auditor Choice: Evidence from Banking Deregulat
Journal of Accounting Research 2024 · pkg 12677
- Gross Profitability 2 packages · 5 models
2 examples in the code
- Decoding Momentum Spillover Effects
Journal of Financial and Quantitative Analysis 2026 · pkg 14153
eststo: reghdfe gp cf_day_stand cf_night_stand $controls , absorb(year_quarter) vce(cluster permno year_quarter)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: reghdfe gp cf_day_stand cf_night_stand ret_day_stand ret_night_stand size_stand logbm_stand mom_stand , absorb(year_quarter) vce(cluster permno year_quarter)
- Asset Pricing in the Information Age: Employee Expectations and Stock Returns
Review of Asset Pricing Studies 2025 · pkg 159126
reghdfe profit outlookd, absorb(permno yq) vce(cluster permno)
- Decoding Momentum Spillover Effects
Journal of Financial and Quantitative Analysis 2026 · pkg 14153
- KZ Index 2 packages · 12 models
2 examples in the code
- Firm Quality Dynamics and the Slippery Slope of Credit Intervention
Review of Economic Studies 2026 · pkg 15155
lm_KZRes1 <- felm(KZ~TobinQ|gvkey+year|0|gvkey+year, df_main)
- Firm Quality Dynamics and the Slippery Slope of Credit Intervention
Review of Economic Studies 2026 · pkg 80919
lm_KZRes1 <- felm(KZ~TobinQ|gvkey+year|0|gvkey+year, df_main)
- Firm Quality Dynamics and the Slippery Slope of Credit Intervention
Review of Economic Studies 2026 · pkg 15155
Commonest outcome names no group reads (all fields, packages): score (11), rate (9), growth (8), lp (8), share (7), pc1 (6), risk (6), sell (6), switch (6), yield (6), correct (5), dep_var (5).
Commands (of the 3,930 packages running the fixed-effects estimator)
reghdfe2828xtreg969feols172felm164ivreghdfe99xtscc62xtivreg251plm42
Inference (of the 3,930 packages running the fixed-effects estimator)
cluster3244default1525robust712driscoll_kraay62bootstrap51newey_west14randomization5conley3
Clustering variables (of the 3,930 packages running the fixed-effects estimator)
id249year177gvkey114date102state80fips75permno68county54
Absorbed fixed effects (of the 3,930 packages running the fixed-effects estimator)
year1093id371date163gvkey120month114state94age93time84
Foundational works
What the papers whose code runs this estimator cite most (share of those papers citing each).
- Difference-in-differences with variation in treatment timing — Andrew Goodman-Bacon (2021), Journal of Econometrics223 · 6%
- Difference-in-Differences with multiple time periods — Brantly Callaway; Pedro H.C. Sant’Anna (2021), Journal of Econometrics197 · 5%
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects — Liyang Sun; Sarah Abraham (2021), Journal of Econometrics179 · 5%
- Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects — Clément de Chaisemartin; Xavier D’Haultfœuille (2020), American Economic Review170 · 4%
- Revisiting Event-Study Designs: Robust and Efficient Estimation — Kirill Borusyak; Xavier Jaravel; Jann Spiess (2024), Review of Economic Studies146 · 4%
- Unobservable Selection and Coefficient Stability: Theory and Evidence — Emily Oster (2019), Journal of Business and Economic Statistics125 · 3%
- The China Syndrome: Local Labor Market Effects of Import Competition in the United States — David H Autor; David Dorn; Gordon H Hanson (2013), American Economic Review117 · 3%
- Bartik Instruments: What, When, Why, and How — Paul Goldsmith-Pinkham; Isaac Sorkin; Henry Swift (2020), American Economic Review116 · 3%
- How Much Should We Trust Differences-In-Differences Estimates? — Marianne Bertrand; Esther Duflo; Sendhil Mullainathan (2004), Quarterly Journal of Economics114 · 3%
- The Effect of Minimum Wages on Low-Wage Jobs — Doruk Cengiz; Arindrajit Dubé; Attila Lindner; Ben Zipperer (2019), Quarterly Journal of Economics109 · 3%
- How much should we trust staggered difference-in-differences estimates? — Andrew C. Baker; David F. Larcker; Charles C.Y. Wang (2022), Journal of Financial Economics102 · 3%
- Estimation and Inference of Impulse Responses by Local Projections — Òscar Jordà (2005), American Economic Review102 · 3%
Recent examples, straight from the code
One model per package, from the most recent papers — each one shows the design itself (why is given beside it).
areg `x' inf_proxy i.yeartrim if sex_c==`y', abs(id) vce(cluster id)
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id)
feols(total_drop_prim ~ sunab(year_treated, year, ref.p = c(-1) ) | +
ibge_cod + year,
cluster = ~ibge_cod ,
data = .)
xtreg lny nkids nhead ndepadul urate cohd* age agesq agecu [aweight=avgwt], fe
reghdfe log_olp, absorb(ams_zip##listyear##listmonth##fe_beds##fe_sqft) resid
reghdfe change_tfp3W negative_eps sue_repo_adj_prcw sue_repo_adj_prcwXleft, a( year) vce(cluster gvkey)
reghdfe vc female, cluster(ape2) absorb(apey)
eststo: reghdfe log_p_d_first Auction , absorb(postcode yyyymm00) vce(cluster postcode yyyymm00)
eststo: xtscc all_stdscore `varn' `cont'
ols = PanelOLS.from_formula(formula, df2).fit(cov_type='clustered', cluster_time=True)
eststo: reghdfe OriginalLTV I_SHFA_final, ///
cl(FIPS) absorb(fegroup)
reghdfe exp_`var3' ps [aweight = weight], `con' `FE' cl(year firm)
reghdfe exp_`var3' ps [aweight = weight], `FE' cl(year firm)