Package: NonlinearDiD
Type: Package
Title: Staggered Difference-in-Differences with Nonlinear Outcomes
Version: 0.1.0
Authors@R: 
    person("Subir", "Hait", email = "haitsubi@msu.edu",
           role = c("aut", "cre"),
           comment = c(ORCID = "0009-0004-9871-9677"))
Description: Implements difference-in-differences estimators for staggered
    treatment adoption with binary, count, and other nonlinear outcomes.
    Extends Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>
    to handle the fundamental identification challenges that arise with nonlinear
    outcome models (logit, probit, Poisson) in heterogeneous treatment timing
    designs. Provides group-time average treatment effects on the treated (ATT),
    aggregation schemes, and pre-treatment parallel trends tests appropriate for
    nonlinear settings. Methods include doubly-robust semiparametric estimators,
    nonparametric bounds, and an odds-ratio DiD approach for binary outcomes. Methods extend Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>, Roth and Sant'Anna (2023) <doi:10.3982/ECTA19255>, and Wooldridge (2023) <doi:10.1093/ectj/utad016>.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.3
Depends: R (>= 4.0.0)
Imports: stats, utils, MASS, sandwich, lmtest, ggplot2, Rcpp (>= 1.0.0)
LinkingTo: Rcpp
Suggests: did, dplyr, knitr, rmarkdown, testthat (>= 3.0.0), covr
VignetteBuilder: knitr
Config/testthat/edition: 3
URL: https://github.com/causalfragility-lab/NonlinearDiD
BugReports: https://github.com/causalfragility-lab/NonlinearDiD/issues
NeedsCompilation: yes
Packaged: 2026-05-03 16:03:35 UTC; Subir
Author: Subir Hait [aut, cre] (ORCID: <https://orcid.org/0009-0004-9871-9677>)
Maintainer: Subir Hait <haitsubi@msu.edu>
Repository: CRAN
Date/Publication: 2026-05-05 19:30:02 UTC
