EconPapers    
Economics at your fingertips  
 

STACKDID: Stata module to estimate Stacked Difference-in-Differences Regression

Jacob Triplett ()
Additional contact information
Jacob Triplett: University of North Carolina

Statistical Software Components from Boston College Department of Economics

Abstract: stackdid performs a stacked difference-in-differences regression for staggered treatment settings, as described in Gormley and Matsa (2011). It offers three primary advantages compared to a standard difference-in-differences approach in such settings: (1) is not subject to earlier bias from dynamic effects (2) can easily isolate a particular window if interest around each event (3) can easily be extended into a triple-difference specification This method generally requires restructuring the data in memory into "stacks" of "cohorts" centered on treatment events. stackdid will create these stacks and perform the specified regression.

Language: Stata
Requires: Stata version 11.2 and reghdfe, ppmlhdfe, ftools from SSC
Keywords: difference in differences; dynamic effects (search for similar items in EconPapers)
Date: 2024-05-24, Revised 2025-02-17
Note: This module should be installed from within Stata by typing "ssc install stackdid". 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/s/stackdid.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/s/stackdid.sthlp help file (text/plain)

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:s459333

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 2025-04-14
Handle: RePEc:boc:bocode:s459333