Nicholas Brown1 and
Kyle Butts2
2Queen's University, 1University of Colorado: Boulder
We present a unifying identification strategy of dynamic average treatment effect parameters for staggered interventions when parallel trends are valid only after controlling for interactive fixed effects. This setting nests the usual parallel trends assumption, but allows treated units to have heterogeneous exposure to unobservable macroeconomic trends. We show that any estimator that is consistent for the unobservable trends up to a non-singular rotation can be used to consistently estimate heterogeneous dynamic treatment effects. This result can apply to data sets with either many or few pre-treatment time periods. We also demonstrate the robustness of two-way fixed effects imputation to certain parallel trends violations and provide a test for its consistency. A quasi-long differencing estimator is proposed and implemented to estimate the effect of Walmart openings on local economic conditions.
-
Simulation-1-twfe_vs_factor.jl
contains code to produce Table 1 -
Simulation-2-signal_to_noise.jl
contains code to produce Figure 1
There are set of helper functions in Simulation-helpers.jl
and Simulation-factor_imputation.jl
that are used in both simulations. Simulations-helpers.jl
contains our data-generating process code and our TWFE and TWFE imputation estimators. Simulation-factor_imputation.jl
contain the code to estimate our generalized imputation estimator.
Walmart-data.R
contains all the data to produce our final sample.
- It takes imputed CBP data from Eckert et. al., 1967 CBP data, 1980 Census Summary files, Walmart openings from Arcidiacono et. al. (2020) and combines it.
- Note that
efsy_panel_naics.csv
needs to be downloaded from their website and put in theraw-data/
folder since it is too large for github. - The sample restrictions on the data follow from Basker (2005)
-
Walmart-analysis-cbp_testing_p.jl
determines the correct number of factors following Ahn, Lee, and Schmidt (2013). This is run first to determine the p to use for retail (p = 2) and wholesale retail (p = 1) employment. It also produces the naive-standard error figures. -
Walmart-analysis-did2s_cbp_bootstrap.R
andWalmart-analysis-factor_cbp_bootstrap.jl
produce the TWFE imputation and generalized imputation bootstrapped estiamtes and saves them indata/
folder. The first row in each corresponds to the true point estimates. -
Walmart-figures-event_study_cbp.jl
produces Figures 2 and 3 using the bootstrapped simulations from the above scripts. -
Walmart-figures-synthetic_control_style_plot.jl
produces Figure 4 synthetic control style plots.
@techreport{brown2022unified,
title={A Unified Framework for Dynamic Treatment Effect Estimation in Interactive Fixed Effect Models},
author={Brown, Nicholas and Butts, Kyle},
year={2022}
}