Package: cdid
Type: Package
Title: The Chained Difference-in-Differences
Version: 1.3.0.1
Authors@R: 
    c(
      person("David", "Benatia", email = "david.benatia@hec.ca", role = c("cre", "aut")),
      person("Christophe", "Bellégo", email = "christophe.bellego@ensae.fr", role = "aut"),
      person("Joel", "Cuerrier", email = "cuerrier.j.clg@gmail.com", role = c("aut")),
      person("Vincent", "Dortet-Bernadet", email = "vincent.dortet-bernadet@finances.gouv.fr", role = "aut")
    )
Maintainer: David Benatia <david.benatia@hec.ca>
Description: Estimates group-time average treatment effects in panels with
    missing outcomes by the chained difference-in-differences method of Bellégo,
    Benatia and Dortet-Bernadet (2025) <doi:10.1016/j.jeconom.2024.105783>.
    The package extends 'did' and retains the att_gt() and aggte() interfaces.
    Chained estimation combines observed changes within units by the
    generalized method of moments. It supports inverse probability weighting,
    outcome regression and doubly robust estimation. Missing outcomes can be
    handled by observation weighting, imputation of outcome changes, or an
    augmented combination of both. Users can choose comparison groups and
    parallel trends assumptions, fit linear cohort-by-date fixed effects,
    test trends before treatment, and inspect fitted regression models.
    A separate analysis estimates the effects of starting and stopping a
    binary treatment under no carryover. Ordinary mode uses the estimators
    of Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>.
License: GPL-3
URL: https://github.com/dvbn/cdid
BugReports: https://github.com/dvbn/cdid/issues
Depends: R (>= 4.1.0)
Imports: did (>= 2.5.1), DRDID (>= 1.4.0), parallel, rlang (>= 1.1.0)
Suggests: testthat (>= 3.0.0), codetools, digest, ggplot2, knitr,
        rmarkdown, generics, jsonlite, waldo, withr
VignetteBuilder: knitr
Config/testthat/edition: 3
Encoding: UTF-8
NeedsCompilation: yes
Author: David Benatia [cre, aut],
  Christophe Bellégo [aut],
  Joel Cuerrier [aut],
  Vincent Dortet-Bernadet [aut]
Packaged: 2026-11-17 01:36:21 UTC; runner
Repository: CRAN
Date/Publication: 2026-11-17 08:30:36 UTC
