Package: cdid 1.3.0.1
cdid: The Chained Difference-in-Differences
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>.
Authors:
cdid_1.3.0.1.tar.gz
cdid_1.3.0.1.zip(r-4.7-x86_64)cdid_1.3.0.1.zip(r-4.7-arm64)cdid_1.3.0.1.zip(r-4.6-x86_64)cdid_1.3.0.1.zip(r-4.6-arm64)
cdid_1.3.0.1.tar.gz(r-4.7-arm64)cdid_1.3.0.1.tar.gz(r-4.7-x86_64)cdid_1.3.0.1.tar.gz(r-4.6-arm64)cdid_1.3.0.1.tar.gz(r-4.6-x86_64)
cdid_1.3.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cdid/json (API)
| # Install 'cdid' in R: |
| install.packages('cdid', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dvbn/cdid/issues
Last updated from:e902eff71b. Checks:10 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 384 | ||
| linux-devel-x86_64 | OK | 389 | ||
| source / vignettes | OK | 419 | ||
| linux-release-arm64 | OK | 371 | ||
| linux-release-x86_64 | OK | 435 | ||
| windows-devel-arm64 | OK | 586 | ||
| windows-devel-x86_64 | OK | 367 | ||
| windows-release-arm64 | OK | 590 | ||
| windows-release-x86_64 | OK | 402 | ||
| wasm-release | OK | 134 |
Exports:aggteatt_gtchain_reportconditional_did_pretestggdidglancenuisance_modelstidy
Dependencies:BHbigmemorybigmemory.sriBMiscclicpp11data.tablediddplyrDRDIDdreamerrfarverfastglmFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixpbapplypillarpkgconfigpurrrR6RColorBrewerRcppRcppArmadilloRcppEigenrlangS7scalesstringistringmagicstringrtibbletidyrtidyselecttrustutf8uuidvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| cdid: The Chained Difference-in-Differences | cdid-package cdid |
| Aggregate group-time average treatment effects | aggte |
| Difference-in-differences estimates for panel data | att_gt |
| Inspect the comparisons used in a chained fit | as.data.frame.cdid_chain_report chain_report print.cdid_chain_report |
| Test for parallel trends before treatment | conditional_did_pretest print.cdid_MP.TEST summary.cdid_MP.TEST |
| Inspect fitted treatment and missing-outcome models | nuisance_models |
| Functions re-exported from did | ggdid glance reexports tidy |
