Event study
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: an event-study estimator, event-time dummies (lead1 lag2, F*event, i.rel_time), an abnormal-return outcome (CAR, BHAR), a market-model regression, or an explicit event window in the sample condition.
- 204 packages declare the design in code; 44 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 205 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 205 packages in the design, 116 have a model that shows the design itself, and 100 of those have a readable outcome (936 models; for 26 packages some outcome is read only through a loop's expansion). Shares are of those 100 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 — 20 of 39 packages have a readable outcome
-
stock returns / abnormal returns65% · 13written as
AR,CAR2,CAR_11,DAR,abnormal_return4 examples in the code
- The Value of Differing Points of View: Evidence from Financial Analysts' Geographic Divers
Review of Financial Studies 2023 · pkg 127
rfs_gerken_painter_replication.do:544 ·
abnormal_return_1_1eststo: reghdfe abnormal_return_1_1 diverse z_fcast_chg_stk_qtr diverse_z_fcast_chg_stk_qtr an_hq_msa num_analysts TURN12 BM Size ln_age ln_nstocks ln_totexp ln_stockexp all_star if num_analysts > …
- Disloyal Managers and Shareholders’ Wealth
Review of Financial Studies 2023 · pkg 305
reghdfe car100 smallcap##c.rdassets , absorb (incorp fyear sic2)
- Corporate Transactions in Hard-to-Value Stocks
Review of Corporate Finance Studies 2023 · pkg 7295
reg exret_e mktrf smb hml umd if q_composite == `j', robust
- ESG-Linked Compensation, CEO Skills, and Shareholder Welfare
Review of Corporate Finance Studies 2023 · pkg 7306
reg CAR2 BHAR3y roafy1 mtb Sentiment sector2-sector10 i.year
- The Value of Differing Points of View: Evidence from Financial Analysts' Geographic Divers
Review of Financial Studies 2023 · pkg 127
-
investment / capex / R&D5% · 1written as
net_invest1 example in the code
- Gambling away stability: Sports betting’s impact on vulnerable households
Journal of Financial Economics 2026 · pkg 158585
eventstudyinteract net_invest L*event F*event, /// vce(cluster state_fips) /// absorb(i.unique_mem_id i.state_fips i.qdate) /// cohort(legalization_q) control_cohort(lastcohort)
- Gambling away stability: Sports betting’s impact on vulnerable households
Journal of Financial Economics 2026 · pkg 158585
-
leverage / debt5% · 1written as
lev_more5Y1 example in the code
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
ReplicationPackage/StataCode/FigureDiDRwlParallelTrendsSunAbraham.do:66 ·
lev_more5Y(loop-expanded: y=lev_more5Y)eventstudyinteract `y' pre_4 pre_3 pre_2 post_0 post_1 post_2 post_3 post_4 , cohort(first_rwl) control_cohort(never_rwl) absorb(i.gvkey i.year_ind_fe) vce(cluster state_code)
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
Economics — 75 of 156 packages have a readable outcome
-
employment / labour supply8% · 6written as
emp_ind,jobs,jobs_pc,lnemp,log_emp_perfirm4 examples in the code
- Mobility responses to the establishment of a residential tax haven: Evidence from Switzerl
Journal of Urban Economics 2022 · pkg 14964
xtevent `outcome' if cant > 0 & cant <27, policyvar(policyvar) /// window(-2 4) trend(-2) /// reghdfe vce(cluster cant periods)
- Wage Insurance and Labor Market Trajectories
AEA Papers and Proceedings 2021 · pkg 16530
eventdd emp_ind over50 `cal_age', timevar(over50_relqtr) ci(rcap) baseline(-1) hdfe absorb(`FEs' relative_qtr `Xs') noline vce(cluster uniqueid) /// graph_op(xtitle("Quarter Relative to Separation …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventdd emp_ind over50 age_qtr age_qtr2, timevar(over50_relqtr) ci(rcap) baseline(-1) hdfe absorb(sep_qtr relative_qtr `xx'_recode `xx'_miss tenure_cat* tenure_miss) noline vce(cluster uniqueid) graph …
- Put on ICE? Effects of Immigration Raids in the Animal Slaughtering and Processing Industr
AEA Papers and Proceedings 2022 · pkg 16736
eventdd ln`X' meat i.time, timevar(timetotreat) ci(rcap) accum noend lags(16) leads(8) graph_op(title(`X') xtitle("Quarter relative to Q2 2006")) - New employer payroll taxes and entrepreneurship
Journal of Public Economics 2025 · pkg 39463
eventstudyinteract `yvar' g_* g0-g$max_ry [aw=wgt], cohort(first_year_increase) control_cohort(never_big) covariates(personalinc corporate log_benefit minwage stunemploymentrate) absorb(ubin bbin n2#y …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract `yvar' g_* g0-g4 [aw=wgt], cohort(first_year_increase) control_cohort(never_big) covariates(personalinc corporate log_benefit minwage stunemploymentrate) absorb(ubin bbin n2#year id …
- Mobility responses to the establishment of a residential tax haven: Evidence from Switzerl
Journal of Urban Economics 2022 · pkg 14964
-
sales / output / quantities / productivity7% · 5written as
gdp_pc,lnTFP_WLP,lnVA,lngdp_percapita,log_output4 examples in the code
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
eventdd gdp_pc if reform_year_all<2007 | reform_year_all==., hdfe absorb(i.year i.county_id i.year##i.prov_id) timevar(ry) ci(rcap) cluster(i.prov_id) accum lags(3) leads(4) baseline(-1)
- International joint ventures and internal technology transfer vs. external technology spil
Journal of International Economics 2024 · pkg 14369
eventdd tfp_op3 lnw_staffno lnage fshare2 nationshare subsidy_d markup if panellength >=5 & jvyear > 1998, timevar(timetotreat) method(hdfe, vce(cluster id) absorb(datayear id)) accum noend leads(8) l …
- Technology Transfer and Early Industrial Development: Evidence from the Sino-Soviet Allian
Review of Economic Studies 2026 · pkg 19377
Replication_Package_260416_restud_rev1/original_replication/Original DoFiles/FigureA3_A4.do:204 ·
log_output(loop-expanded: variable=log_output)eventstudyinteract `variable' `lags' `leads', /// cohort(treatment_year) /// control_cohort(never_treated) /// absorb(i.plant_id i.year) / …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract `variable' g_m5 g_m4 g_m3 g_m2 g_0 g_1 g_2 g_3 g_4 g_5 g_6 g_7 g_8 g_9 g_10 g_11 g_12 g_13 g_14 g_15 g_16 g_17 g_18 g_19 g_20 g_21 g_22 g_23 g_24 g_25 g_26 g_27 g_28 g_29 g_30 g_31 …
- Flattening governments, flattening growth: Equalization–efficiency trade-off in jurisdicti
Journal of Urban Economics 2026 · pkg 97024
code/2_county_level_analysis.do:483 ·
lngdp_percapitaeventstudyinteract lngdp_percapita L*event F*event , vce(cluster county) absorb(county year) cohort(Ei) control_cohort(lastcohort) covariates( $control )
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventstudyinteract lngdp_percapita L*event F*event , vce(cluster county) absorb(county year) cohort(Ei) control_cohort(lastcohort) covariates( cpe treatment_trend int_* )
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
-
wages / earnings7% · 5written as
any_wages,cpi_wages_zeros,lnW,lwage,sh_base_earn4 examples in the code
- Wage Insurance and Labor Market Trajectories
AEA Papers and Proceedings 2021 · pkg 16530
code/code/5_analyze/regression_evstudy.do:40 ·
sh_base_earn_zeroseventdd sh_base_earn_zeros over50 `cal_age', timevar(over50_relqtr) ci(rcap) baseline(-1) hdfe absorb(`FEs' relative_qtr `Xs') noline vce(cluster uniqueid) /// graph_op(xtitle("Quarter Relative t …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventdd sh_base_earn_zeros over50 age_qtr age_qtr2, timevar(over50_relqtr) ci(rcap) baseline(-1) hdfe absorb(sep_qtr relative_qtr `xx'_recode `xx'_miss tenure_cat* tenure_miss) noline vce(cluster uniq …
- The Labor Market Impacts of Reducing Felony Convictions
American Economic Review: Insights 2024 · pkg 68683
AGKMY_replication_files_public/code_irs/3_analysis/3_SJCO_event_study.do:110 ·
any_wages(loop-expanded: possiblepetitioner=0; dependentvar=any_wages)eststo eventstudy_free: /// reghdfe `dependentvar' /// F* L* /// age* /// if possiblepetitioner==`possiblepetitioner' /// , absorb(tIDyr) cluster(tID) - Product Market Monopolies and Labour Market Monopsonies
The Economic Journal 2026 · pkg 81315
3-replication-package/Analysis/tables_figures_appendix.do:946 ·
wage_markdownqui: eventdd wage_markdown [pw=ipw] if wage_markdown!=. & W!=. & mpl!=., /// noconst cluster(kblir4 district) /// a(i.PSID i.year##i.sec i.year##i.district) /// hdfe timevar(ry) b … - Multinational network restructuring, geopolitical exposure, and home country effects – Evi
Journal of International Economics 2026 · pkg 158582
Multinational Network Restructuring, Geopolitical/programfiles/[robust.4] Validation parents.do:169 ·
lnW(loop-expanded: depvar=lnW)eventstudyinteract `depvar' L*event F*event if LENGTH<=1, vce(cluster parent_id) absorb(parent_id year) cohort(ENDYEAR) control_cohort(lastcohort)
- Wage Insurance and Labor Market Trajectories
AEA Papers and Proceedings 2021 · pkg 16530
-
income / consumption / wealth / inequality5% · 4written as
gini_gdp_percapita,income_pc_std,spending,wealth_score_std4 examples in the code
- Revisiting Event-Study Designs: Robust and Efficient Estimation
Review of Economic Studies 2024 · pkg 18413
ReplicationPackage/Code/Alt_estimators.do:43 ·
spendingeventstudyinteract spending L*event F*event [aw=projection_factor], vce(cluster hhid) absorb(hhid pperiod) cohort(Ei_mi) control_cohort(lastcohort)
- The socioeconomic impacts of industrial parks in Ethiopia
Journal of Urban Economics 2026 · pkg 97017
Replication Data and Files/regAnalysis4_survey_appendix.do:294 ·
wealth_score_stdeventdd wealth_score_std $contr1 [pweight=weight_I], /// timevar(time) /// method(hdfe, absorb(woreda_code i.regionid#i.phase) cluster(woreda_code)) /// ci(rcap, lcolor(gs4)) level(95) acc …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eventdd wealth_score_std num_household head_age [pweight=weight_I], timevar(time) method(hdfe, absorb(woreda_code i.regionid#i.phase) cluster(woreda_code)) ci(rcap, lcolor(gs4)) level(95) accum leads( …
- Flattening governments, flattening growth: Equalization–efficiency trade-off in jurisdicti
Journal of Urban Economics 2026 · pkg 97024
code/1_province_level_analysis.do:409 ·
gini_gdp_percapitaeventstudyinteract gini_gdp_percapita L*event F*event , vce(cluster prov) absorb(prov year) cohort(Ei) control_cohort(lastcohort) covariates(treatment_trend)
- Terrorism and Voting: The Rise of Right-Wing Populism in Germany
American Economic Journal: Economic Policy 2025 · pkg 155571
SLF_replication_upload/programs/02_analysis/figure2.do:52 ·
income_pc_stdxtevent income_pc_std , policy(policy_var) p(id) t(period) window(-3 2) diffavg cluster(id) impute(nuchange) cohort(year_attack) control_cohort(never_treated)
- Revisiting Event-Study Designs: Robust and Efficient Estimation
Review of Economic Studies 2024 · pkg 18413
-
crime / conflict / corruption4% · 3written as
arrests_n,lynching_any,lynching_num,lynching_per_cap,lynching_unique3 examples in the code
- Down to the Wire: Leveraging Technology to Improve Electric Utility Cost Recovery
American Economic Journal: Applied Economics 2025 · pkg 17394
reghdfe `y' ib10.event, absorb(Contract PMTID#moy date_monthly) vce(cluster PMTID)
- From Retributive to Restorative: An Alternative Approach to Justice in Schools
American Economic Review 2025 · pkg 90221
rp-restructure-main/culture_of_calm/2_run_chaisemartin/src/coc_event_study_hs.do:66 ·
arrests_n(loop-expanded: outcome_variable=arrests_n)eventdd `outcome_variable' ${controlvars_hs}, timevar(t) /// method(hdfe, absorb(first_hs_schlid file_sy hs_cohort_fac age_fac) /// vce(cluster first_hs_schlid)) accum leads(2) lags(8) - The Birth of a Nation: Media and Racial Hate
American Economic Review 2023 · pkg 154904
replication_FINAL_v2/code/figure3.do:7 ·
lynching_anyeventdd lynching_any all, hdfe absorb(week_date#state_fips fips) timevar(month_to_treat) cluster(state_fips) accum lags(6) leads(6)
- Down to the Wire: Leveraging Technology to Improve Electric Utility Cost Recovery
American Economic Journal: Applied Economics 2025 · pkg 17394
-
health / mortality4% · 3written as
mort1,mort1_c,mort1_f2,mort1_m2,smoke3 examples in the code
- Later-life mortality and the repeal of federal prohibition
Journal of Public Economics 2024 · pkg 15206
eststo p1_c1: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
- The effect of water filtration on cholera mortality
Journal of Urban Economics 2025 · pkg 102557
replication_code.txt:1141 ·
mort1xtevent mort1 , policyvar(PDB1) panelvar(fe) timevar(time) window(9) cluster(fe) reghdfe
- Dynamic responses to smoking bans: Evidence from young adults in a developing country
Journal of Development Economics 2025 · pkg 161933
dofiles/23_appendix_b4.do:45 ·
smokeeventstudyinteract smoke L*event F*event [aw=weight], vce(cluster uf) absorb(id year) cohort(time_treated) control_cohort(never_treated)
- Later-life mortality and the repeal of federal prohibition
Journal of Public Economics 2024 · pkg 15206
-
migration / population4% · 3written as
pop2_std,pop_u5y,pop_u5y_1y,reason_migration_2,reason_migration_33 examples in the code
- The Unintended Consequences of Infrastructure Development
Review of Economics and Statistics 2026 · pkg 13680
reghdfe `y' F*event L*event, a(i t) cluster(i)
- Access to Colleges, Human Capital, and Empowerment of Women
Journal of Human Resources 2024 · pkg 38695
Do-file-replication-College-construction-JHR.do:1431 ·
reason_migration_3eventdd reason_migration_3 i.v010 i.id if v010<=1994 , timevar(timeToTreat) ci(rcap) cluster(id) graph_op(xtitle("Year of birth")/* */scheme(s1color) xlabel(-26 "1965" -21 "1970" -16 "1975" - … - Terrorism and Voting: The Rise of Right-Wing Populism in Germany
American Economic Journal: Economic Policy 2025 · pkg 155571
xtevent pop2_std , policy(policy_var) p(id) t(period) window(-3 2) diffavg cluster(id) impute(nuchange)
- The Unintended Consequences of Infrastructure Development
Review of Economics and Statistics 2026 · pkg 13680
-
prices / inflation / rents4% · 3written as
ln_totag_07prices,lnmarkup,lnprice,logp3 examples in the code
- Climate Change and Agriculture: Subsistence Farmers’ Response to Extreme Heat
American Economic Journal: Economic Policy 2021 · pkg 11128
do files/Tables_and_figures.do:960 ·
ln_totag_07pricesreghdfe ln_totag_07prices DDavg hDDavg PP_gs PP_sq_gs $inputs $indconts $soilq $farmconts LT L2 L3 T2 T3 L2T LT2 if sample==1 [pw=factor07], abs(ubigeo group##gs ) vce(cluster ubigeo)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe ln_totag_07prices DDavg hDDavg PP_gs PP_sq_gs ln_totsup_prod ln_nrHHmem_agricwork_all ln_peones edad edad2 female i.educ_att i.month i.sq1 i.sq2 i.sq3 i.sq4 i.sq5 i.sq6 i.sq7 share_secano LT L …
- Does Entry Remedy Collusion? Evidence from the Generic Prescription Drug Cartel
American Economic Review 2025 · pkg 17317
eventstudyinteract logp g_* g0-g24, cohort(when_cartel) control_cohort(no_cartel) absorb(i.drug_id i.date) vce(cluster drug_id)
- Keeping up with the Joneses: FDI, supply chain linkages, and industrial emissions
Journal of International Economics 2026 · pkg 254445
replication_files_MYZ/Code/Figure D6.do:32 ·
lnmarkupqui reghdfe lnmarkup pre8 pre7 pre6 pre5 pre4 pre3 pre2 post0 post1 post2 post3 post4 post5 post6 post7, a(firmid pollution_industry#year i.lnnum_near5#c.year i.lnk5#c.year i.lnl5#c.year) cluster(grid …
- Climate Change and Agriculture: Subsistence Farmers’ Response to Extreme Heat
American Economic Journal: Economic Policy 2021 · pkg 11128
Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)
- Book Leverage 1 package · 4 models
1 example in the code
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
ReplicationPackage/StataCode/FigureDiDRwlParallelTrendsSunAbraham.do:66 ·
lev(loop-expanded: y=lev)eventstudyinteract `y' pre_4 pre_3 pre_2 post_0 post_1 post_2 post_3 post_4 , cohort(first_rwl) control_cohort(never_rwl) absorb(i.gvkey i.year_ind_fe) vce(cluster state_code)
- Resilience in collective bargaining
Journal of Financial Economics 2025 · pkg 125683
- Cumulative Abnormal Return (CAR) 1 package · 49 models
1 example in the code
- To Interact or Not? On the Benefits of Interacting with Unfavorable Analysts During Earnin
Journal of Accounting Research 2025 · pkg 12739
eststo mf1: qui reghdfe car_mf $exog_controls $controls , absorb(year_qtr industry) vce(cluster firm year_qtr) keepsin
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo mf1: qui reghdfe car_mf c.pos_surp c.neg_surp c.ue_adj c.loss c.roa c.bhar_yr c.std_ret_yr c.n_analysts c.btm c.accruals c.earn_persist c.earn_vol c.news_adj##(c.prior_mgmt_acc_adj_3yrs c.pred_ …
- To Interact or Not? On the Benefits of Interacting with Unfavorable Analysts During Earnin
Journal of Accounting Research 2025 · pkg 12739
Commands (of the 44 packages running the dedicated estimator)
eventdd22eventstudy9xtevent9eventstudy24
Inference (of the 44 packages running the dedicated estimator)
cluster31default13randomization1robust1
Clustering variables (of the 44 packages running the dedicated estimator)
id4state_fips2agent_id1blocks1cant1cant#periods1code1com_cod1
Absorbed fixed effects (of the 44 packages running the dedicated estimator)
year4fips2id2`fe'1`xx'_miss1`xx'_recode1above_301age1
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 Econometrics9 · 20%
- Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects — Clément de Chaisemartin; Xavier D’Haultfœuille (2020), American Economic Review7 · 16%
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects — Liyang Sun; Sarah Abraham (2021), Journal of Econometrics6 · 14%
- Difference-in-Differences with multiple time periods — Brantly Callaway; Pedro H.C. Sant’Anna (2021), Journal of Econometrics5 · 11%
- Revisiting Event-Study Designs: Robust and Efficient Estimation — Kirill Borusyak; Xavier Jaravel; Jann Spiess (2024), Review of Economic Studies5 · 11%
- Bartik Instruments: What, When, Why, and How — Paul Goldsmith-Pinkham; Isaac Sorkin; Henry Swift (2020), American Economic Review4 · 9%
- The Power Of Tv: Cable Television And Women’S Status In India — Robert Jensen; Emily Oster (2009), Quarterly Journal of Economics3 · 7%
- Quasi-Experimental Shift-Share Research Designs — Kirill Borusyak; Peter Hull; Xavier Jaravel (2022), Review of Economic Studies3 · 7%
- Law and Finance — Rafael La Porta; Florencio Lopez‐de‐Silanes; Andrei Shleifer; Robert W. Vishny (1998), Journal of Political Economy3 · 7%
- Unobservable Selection and Coefficient Stability: Theory and Evidence — Emily Oster (2019), Journal of Business and Economic Statistics3 · 7%
- The Surprisingly Swift Decline of US Manufacturing Employment — Justin R. Pierce; Peter K. Schott (2016), American Economic Review3 · 7%
- Pre-Event Trends in the Panel Event-Study Design — Simon Freyaldenhoven; Christian Hansen; Jesse M. Shapiro (2019), American Economic Review3 · 7%
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).
qui reghdfe Y F*event L*event if arrested==1 , a(i t i.yob#c.t i.female#c.t i.idnac#c.t) cluster(i)
eventdd absTotAcc2 i.IFRS_ADOPTION Size2w Performancew Growthw Loss PPE_Growthw Leveragew SalesVolw CFOVolw InvAssetsw RevARw PPENw ROAw if fyear>=2000, level(90) timevar(time_to_treat) method(hdfe, absorb(fyear gvkey) cluster(nation )) graph_op( xtitle(Relative time to Treat) graphregion(color(white)) yline( -1, lwidth(thick))) lags(10) leads(10) accum baseline(-1)
reghdfe `y' star10 $controls, a($fe_s) cluster($clustering)
reghdfe `y' star10 lnat_r_w sale_growth_w liabilities_assets_w bm_w return1_w return_std_dev1_w return_skewness1_w turnover1_w, a(gvkey year_s lstype) cluster(gvkey)
reghdfe `y' F*event L*event, a(i t) cluster(i) //
eventstudyinteract PC_avghomevalue L*event F*event, vce(cluster statefips) absorb(countyfips year) cohort(TreatYear) control_cohort(lastcohort) covariates(l_maleratio l_whiteratio l_blackratio l_iaratio l_hispanicratio l_age20t64ratio l_age65pratio l_miginflowratio l_povertyratio l_unemploymnentrate l_laborpartrate l_neoplasmsrate l_physicians)
qui reghdfe `v' COVID19, absorb(i.yq i.firm#i.plantid) keepsingleton cluster(city yq)
reghdfe car_neg1_pos1 change_equity_perc_comp_POS##rel_size_5_neg0_stock_95 change_equity_perc_comp_POS##rel_size_5_neg0_mixed_95 /// $rhs1 rel_size_mve_comp_neg0 if ($period1==1 | $period2==1) & rel_size_mve_gt_05_neg0==1, absorb(year_industry) vce(cluster gvkey_n)
reghdfe car_neg1_pos1 change_equity_perc_comp_POS##rel_size_5_neg0_stock_95 change_equity_perc_comp_POS##rel_size_5_neg0_mixed_95 lag_log_assets_2004 lag_firm_age_years_compustat age lag_mkt_book_compustat_w1 return_year_lag1 lag_roa_w1 change_ceo rel_size_mve_comp_neg0 if (year_1993_2005==1 | year_2006_2018==1) & rel_size_mve_gt_05_neg0==1, absorb(year_industry) vce(cluster gvkey_n)
eventdd constr i.qdate i.fail_high `control_vars', timevar(event_time) method(hdfe, absorb(fsa) vce(cluster fsa)) ci(rcap, lcolor(gs8)) coef_op(ms(D) mc(gs8)) ///
graph_op(legend(order(2 "Point estimate" 1 "95% CI")) graphregion(color(white)) plotregion(lc(black) lw(medthin)) aspectratio(0.8) xsize(10) ysize(8) ylabel(-0.02(0.02)0.08) ytitle("I(Constrained w/o parent)") xtitle("Quarter relative to 2016Q4"))eventdd constr i.qdate i.fail_high min_age i.cs_cd_cut, timevar(event_time) method(hdfe, absorb(fsa) vce(cluster fsa)) ci(rcap, lcolor(gs8)) coef_op(ms(D) mc(gs8)) graph_op(legend(order(2 "Point estimate" 1 "95% CI")) graphregion(color(white)) plotregion(lc(black) lw(medthin)) aspectratio(0.8) xsize(10) ysize(8) ylabel(-0.02(0.02)0.08) ytitle("I(Constrained w/o parent)") xtitle("Quarter relative t
eventstudy2 Stkcd date using stockreturn, returns(Dretwd) model(RAW) ///
eswlb(-250) eswub(-50) ///
evwlb(-1) evwub(7) ///
car1LB(-1) car1UB(7) ///
arfile(RAWarfile1_7) crossfile(RAWcrossfile1_7) replace
eventstudyinteract `y' L*event F*event, vce(cluster i) absorb(i t) cohort(Ei) control_cohort(lastcohort)
eventstudyinteract `x' lag_6 lag_5 lag_4 lag_3 lag_2 lag_1 lead_0 lead_1 lead_2 lead_3 lead_4 lead_5 lead_6 if year>1994 & sample==1 &(id_statemuni!=28022&id_statemuni!=15033 &id_statemuni!=25012&id_statemuni!=14039), absorb(i.id_statemuni i.year i.veryfar) control_cohort(no_treat) cohort(treat_year) vce(cluster id_statemuni)
eventdd