EconPapers    
Economics at your fingertips  
 

CDID: Stata module to perform chained difference-in-differences for complete and incomplete panels

David Benatia

Statistical Software Components from Boston College Department of Economics

Abstract: cdid estimates group-time average treatment effects on the treated, ATT(g,t): the average effect at date t on the units first treated at date g, in designs where units adopt the treatment at different dates and remain treated. It implements the chained difference-in-differences estimator of Bellégo, Benatia, and Dortet-Bernadet (2025) within the framework of Callaway and Sant'Anna (2021). In chained mode, the default, each unit contributes the changes of its outcome between the dates at which it is observed, so the panel need not be complete. These comparisons are combined by the generalized method of moments (GMM). The targets remain the effects on the cohorts of the study population, including units whose outcomes are missing at some dates (except that, under the default missingreference(exclude), a cohort whose treated units lack a required reference covariate is estimated for its eligible treated units); the assumptions concern the missing changes rather than the missing levels. An effect that the observed comparisons cannot recover is reported as unavailable, with a reason, and is never set to zero.

Language: Stata
Requires: Stata version 19.5 and csdid from SSC (q.v.)
Keywords: difference in differences; DiD; chained; ATE (search for similar items in EconPapers)
Date: 2026-11-17, Revised 2026-11-25
Note: This module should be installed from within Stata by typing "ssc install cdid". The module is made available under terms of the GNU General Public License version 3.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/cdid.ado
http://fmwww.bc.edu/repec/bocode/c/cdid.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_chain.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_chain.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_custom_estimators.do
http://fmwww.bc.edu/repec/bocode/c/cdid_custom.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_diagnostics.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_diagnostics.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_dvar.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_estat.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_export.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_export.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_hands_on.do
http://fmwww.bc.edu/repec/bocode/c/cdid_load.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_load.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_nuisance.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_nuisance.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_plot.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_plot.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_postestimation.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_pretest_load.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_pretest_load.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_pretest.ado
http://fmwww.bc.edu/repec/bocode/c/cdid_pretest.sthlp
http://fmwww.bc.edu/repec/bocode/c/cdid_sources.zip
http://fmwww.bc.edu/repec/bocode/l/lcdid_native.mlib
http://fmwww.bc.edu/repec/bocode/_/_cdid_aug_reference_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_baseline_reference_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_chained_aggregate.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_imp_reference_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ordinary_aggregate.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ordinary_frontend.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ordinary_post.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ordinary_pretest.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ordinary.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_post_finish.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_post.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_pretest_chained.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_pretest_display.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_pretest_grid.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_public_post.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_reference_encode.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_reference_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_request_prepare_mref.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_request_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_selected_reference_prepare.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_static.ado
http://fmwww.bc.edu/repec/bocode/_/_cdid_ur_target.ado

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s460035

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-11-26
Handle: RePEc:boc:bocode:s460035