English

{did2s}: Two-Stage Difference-in-Differences

Econometrics 2023-10-06 v2

Abstract

Recent work has highlighted the difficulties of estimating difference-in-differences models when treatment timing occurs at different times for different units. This article introduces the R package did2s which implements the estimator introduced in Gardner (2021). The article provides an approachable review of the underlying econometric theory and introduces the syntax for the function did2s. Further, the package introduces a function, event_study, that provides a common syntax for all the modern event-study estimators and plot_event_study to plot the results of each estimator.

Cite

@article{arxiv.2109.05913,
  title  = {{did2s}: Two-Stage Difference-in-Differences},
  author = {Kyle Butts and John Gardner},
  journal= {arXiv preprint arXiv:2109.05913},
  year   = {2023}
}

Comments

13 pages, 4 figures, 2 tables

R2 v1 2026-06-24T05:54:51.536Z