Package: cdid 1.2.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 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'.
Authors:
cdid_1.2.0.1.tar.gz
cdid_1.2.0.1.zip(r-4.7-x86_64)cdid_1.2.0.1.zip(r-4.5-x86_64)
cdid_1.2.0.1.tgz(r-4.6-x86_64)cdid_1.2.0.1.tgz(r-4.6-arm64)cdid_1.2.0.1.tgz(r-4.5-x86_64)cdid_1.2.0.1.tgz(r-4.5-arm64)
cdid_1.2.0.1.tar.gz(r-4.7-arm64)cdid_1.2.0.1.tar.gz(r-4.7-x86_64)cdid_1.2.0.1.tar.gz(r-4.6-arm64)cdid_1.2.0.1.tar.gz(r-4.6-x86_64)
cdid_1.2.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://dvbn.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/dvbn/cdid/issues
Last updated from:bdad198f12. Checks:9 OK, 3 NOTE, 3 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 384 | ||
| linux-devel-x86_64 | OK | 421 | ||
| source / vignettes | OK | 328 | ||
| linux-release-arm64 | OK | 348 | ||
| linux-release-x86_64 | OK | 275 | ||
| macos-release-arm64 | OK | 397 | ||
| macos-release-x86_64 | OK | 550 | ||
| macos-oldrel-arm64 | NOTE | 495 | ||
| macos-oldrel-x86_64 | NOTE | 862 | ||
| windows-devel-arm64 | FAIL | 133 | ||
| windows-devel-x86_64 | OK | 505 | ||
| windows-release-arm64 | FAIL | 134 | ||
| windows-release-x86_64 | FAIL | 531 | ||
| windows-oldrel-x86_64 | NOTE | 423 | ||
| wasm-release | OK | 111 |
Exports:aggteatt_gtconditional_did_pretestggdidglancetidy
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 |
| Group-time average treatment effects: chained or ordinary mode | att_gt |
| Conditional pretrend test (chained by default for panels) | conditional_did_pretest print.cdid_MP.TEST summary.cdid_MP.TEST |
| Functions re-exported from did | ggdid glance reexports tidy |
