Package: did2s
Title: Two-Stage Difference-in-Differences Following Gardner (2021)
Version: 1.2.0
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) <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.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: 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
NeedsCompilation: no
Packaged: 2025-09-18 13:17:16 UTC; kbutts
Author: Kyle 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]
Maintainer: Kyle Butts <buttskyle96@gmail.com>
Repository: CRAN
Date/Publication: 2025-09-19 07:10:10 UTC
Built: R 4.6.0; ; 2025-11-28 06:27:45 UTC; unix
