Package: did2s Title: Two-Stage Difference-in-Differences Following Gardner (2021) Version: 1.2.1 Authors@R: c(person(given = "Kyle", family = "Butts", role = c("aut","cre"), email = "buttskyle96@gmail.com", comment = c(ORCID = "0000-0002-9048-8059")), person(given = "John", family = "Gardner", role = "aut", email = "jrgardne@olemiss.edu", comment = c(ORCID = "0000-0002-4028-6862")), person(given = "Grant", family = "McDermott", role = "ctb", email = "grantmcd@uoregon.edu", comment = c(ORCID = "0000-0001-7883-8573")), person(given = "Laurent", family = "Berge", role = "ctb", email = "laurent.berge@u-bordeaux.fr")) Description: Estimates Two-way Fixed Effects difference-in-differences/event-study models using the approach proposed by Gardner (2021) . 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. License: MIT + file LICENSE Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 Depends: R (>= 3.5.0), fixest (>= 0.13.2) Imports: boot, broom, data.table, did, didimputation, dreamerr, ggplot2, HonestDiD, Matrix, rlang, staggered, stats URL: https://kylebutts.github.io/did2s/ Suggests: haven, knitr, rmarkdown, testthat (>= 3.0.0) VignetteBuilder: knitr Config/testthat/edition: 3 Config/pak/sysreqs: cmake libglpk-dev libgmp3-dev make libicu-dev pkg-config libclang-dev Repository: https://kylebutts.r-universe.dev Date/Publication: 2026-06-12 21:36:39 UTC RemoteUrl: https://github.com/kylebutts/did2s RemoteRef: HEAD RemoteSha: cde84687aecfc11b949fbd5bd56fea1992fb76a0 NeedsCompilation: no Packaged: 2026-06-12 22:26:16 UTC; root Author: Kyle Butts [aut, cre] (ORCID: ), John Gardner [aut] (ORCID: ), Grant McDermott [ctb] (ORCID: ), Laurent Berge [ctb] Maintainer: Kyle Butts