WHICHDIDSHOULDIUSE: Stata module to classify a panel's difference-in-differences design
Alberto Trelles (),
Clement de Chaisemartin () and
Anzony Quispe ()
Additional contact information
Alberto Trelles: Sciences Po
Clement de Chaisemartin: Sciences Po
Anzony Quispe: Brown University
Statistical Software Components from Boston College Department of Economics
Abstract:
whichdidshouldiuse reads a panel and classifies its difference-in-differences design as CLA, SAD, HAD, SFSD or OTHER, names a suitable estimator, and points you at the relevant chapter of Clement de Chaisemartin and Xavier D'Haultfoeuille's difference-in-differences textbook. It classifies; it does not estimate. There are no fixed effects, weights or standard-error options, because nothing is being fitted.
Language: Stata
Requires: Stata version 16 and distinct, did_had, gtools from SSC (q.v.)
Keywords: panel data; DiD; TWFE (search for similar items in EconPapers)
Date: 2026-10-24
Note: This module should be installed from within Stata by typing "ssc install whichdidshouldiuse". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/w/whichdidshouldiuse.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/w/whichdidshouldiuse.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/g/gentzkowetal_didtextbook.dta
http://fmwww.bc.edu/repec/bocode/m/moser_voena_didtextbook.dta
http://fmwww.bc.edu/repec/bocode/p/pierce_schott_didtextbook.dta
http://fmwww.bc.edu/repec/bocode/w/wolfers2006_didtextbook.dta
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:s459944
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 ().