cdid: The Chained Difference-in-Differences

Estimates group-time average treatment effects in panels with missing outcomes by the chained difference-in-differences of Bellégo, Benatia and Dortet-Bernadet (2025) <doi:10.1016/j.jeconom.2024.105783>. It is a layer on the 'did' package that keeps the att_gt() and aggte() interface and adds an estimation mode. Chained estimation, the default for panel data, combines short within-unit comparisons by the generalized method of moments. It provides chained inverse probability weighting (IPW), outcome regression (OR) and doubly robust (DR) estimation, where OR and DR use separate or pooled regressions of the controls' outcome changes; custom IPW callbacks; correction for covariate-dependent missing outcomes by observation weighting, change imputation or their augmented combination; parallel trends from each cohort's reference period (PT-post) or from a chosen common start date (PT-all); and a chained conditional pretrend test through conditional_did_pretest(). Ordinary mode delegates unchanged to the Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001> estimators in 'did'.

Version: 1.2.0.1
Depends: R (≥ 4.1.0)
Imports: did (≥ 2.5.1), DRDID (≥ 1.4.0), parallel
Suggests: testthat (≥ 3.0.0), digest, ggplot2, knitr, rmarkdown, generics, jsonlite, waldo, withr
Published: 2026-11-07
DOI: 10.32614/CRAN.package.cdid
Author: David Benatia [cre, aut], Christophe Bellégo [aut], Joel Cuerrier [aut], Vincent Dortet-Bernadet [aut]
Maintainer: David Benatia <david.benatia at hec.ca>
BugReports: https://github.com/dvbn/cdid/issues
License: GPL-3
URL: https://github.com/dvbn/cdid
NeedsCompilation: yes
Citation: cdid citation info
Materials: README, NEWS
CRAN checks: cdid results

Documentation:

Reference manual: cdid.html , cdid.pdf
Vignettes: Getting Started with cdid (source, R code)

Downloads:

Package source: cdid_1.2.0.1.tar.gz
Windows binaries: r-devel: cdid_0.1.1.zip, r-release: cdid_0.1.1.zip, r-oldrel: cdid_0.1.1.zip
macOS binaries: r-release (arm64): cdid_0.1.1.tgz, r-oldrel (arm64): cdid_0.1.1.tgz, r-release (x86_64): cdid_0.1.1.tgz, r-oldrel (x86_64): cdid_1.2.0.1.tgz
Old sources: cdid archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=cdid to link to this page.