EconBase
← All papers

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

Kyle Butts, John Gardner

arXiv 10 Sep 2021 · Econometrics · publishedThe R Journal (2022)

arXiv:2109.05913 · PDF · DOI · OpenAlex · Extracted main text

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.

Citation extraction

15
references
31
in-text mentions
15
distinct cited
0
self-citations
5,722
main-text words

appendix boundary found by none_found · 100% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1J. Gardner (2021) Two-Stage Difference-in-Differences1.00074100%
2L. Sun and S. Abraham (2020) Estimating dynamic treatment effects in event studies with heterogeneous treatment effects0.92843100%
3K. Borusyak, X. Jaravel, and J. Spiess (2021) Revisiting event study designs: Robust and efficient estimation0.73732100%
4C. de Chaisemartin and X. D’Haultfoeuille (2019) Two-way Fixed Effects Estimators with Heterogeneous Treatment Effects0.73732100%
5L. Bergé (2018) Efficient estimation of maximum likelihood models with multiple fixed-effects: the R package FENmlm0.64422100%
6A. Goodman-Bacon (2018) Difference-in-Differences with Variation in Treatment Timing0.64422100%
7W. Newey and D. McFadden (1986) Large sample estimation and hypothesis testing0.51121100%
8C. Caetano, B. Callaway, S. Payne, and H. S. Rodrigues (2022) Difference in differences with time-varying covariates0.40511100%
9B. Callaway and P. H. Sant’Anna (2020) Difference-in-differences with multiple time periods0.40511100%
10R. Frisch and F. V. Waugh (1933) Partial time regressions as compared with individual trends0.40511100%

Showing the top 10 of 15 scored citations.