Skip to content

Stata scripts running recent staggered DID estimators on simulated dataset

Notifications You must be signed in to change notification settings

wenddymacro/staggered_did

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staggered_did

The folder contains a Stata project that uses a simulated dataset and produces event studies plots using TWFE OLS and the recently developed estimators csdid, did2s, eventstudyinteract, did_multiplegt, did_imputation, and stackedev. For further details on these estimators and related packages see this page by Asjad Naqvi.

This code is a slightly modified version of a script originally written by Kirill Borusyak and later adapted by David Burgherr .

Guidance

Download the entire zipped folder and open the Stata project staggered.stpr. Two scripts will appear in the project manager:

  • scripts/0.run_file.do: sets up the environment and calls scripts/1.staggered_did_analysis.do to compute the estimates. There is no need to adjust paths, nor downloading the user-written packages as they are already contained in stata_packages. It suffices to run scripts/0.run_file.do to obtain the estimates.

  • scripts/1.staggered_did_analysis.do: contains the DID estimations and produces two event-study plots for different time-horizons which will be saved in the folder output.

As several of these user-written packages have been developed recently, it is worth checking for updates by changing global downloads 0 into global downloads 1 in scripts/0.run_file.do. This will automatically update all packages.

About

Stata scripts running recent staggered DID estimators on simulated dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Stata 100.0%