did2s: Two-Stage Difference-in-Differences Following Gardner (2021)

Estimates Two-way Fixed Effects difference-in-differences/event-study models using the approach proposed by Gardner (2021) <doi:10.48550/arXiv.2207.05943>. To avoid the problems caused by OLS estimation of the Two-way Fixed Effects model, this function first estimates the fixed effects and covariates using untreated observations and then in a second stage, estimates the treatment effects.

Package details

AuthorKyle Butts [aut, cre] (ORCID: <https://orcid.org/0000-0002-9048-8059>), John Gardner [aut] (ORCID: <https://orcid.org/0000-0002-4028-6862>), Grant McDermott [ctb] (ORCID: <https://orcid.org/0000-0001-7883-8573>), Laurent Berge [ctb]
MaintainerKyle Butts <buttskyle96@gmail.com>
LicenseMIT + file LICENSE
Version1.2.0
URL https://kylebutts.github.io/did2s/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("did2s")

Try the did2s package in your browser

Any scripts or data that you put into this service are public.

did2s documentation built on Nov. 5, 2025, 5:26 p.m.