eventStudy

eventStudy is an R package and guide for performing event studies with heterogeneous dynamic effects. It provides point estimates and standard errors for average treatment effects on the treated (ATT) parameters that vary by treatment cohort and event time.

The package provides a single command that handles all steps automatically, including complicated data manipulation and regression steps, such as:

  • “stacking” control units and employing a fully-interacted regression to estimate the various ATTs,
  • correcting for anticipation and deviations from parallel trends using parametric and non-parametric approaches,
  • providing various summary ATT estimates collapsed across treatment cohorts and/or event times with appropriate clustered standard errors.

Simply install with devtools::install_github("setzler/eventStudy/eventStudy"), then the entire data preparation and estimation process is performed in one line of code using the ES() function.

The event studies in the following papers were estimated with this software:

  • “Imperfect Competition and Rents in Labor and Product Markets: The Case of the Construction Industry,” by Kroft, Luo, Mogstad, and Setzler
Bradley Setzler
Bradley Setzler
Postdoctoral Fellow