EconPapers    
Economics at your fingertips  
 

LPDID: Stata module implementing Local Projections Difference-in-Differences (LP-DiD) estimator

Alexander Busch and Daniele Girardi

Statistical Software Components from Boston College Department of Economics

Abstract: LPDID performs the Local Projections Difference-in-Differences estimator (LP-DiD) proposed by Dube, Girardi, Jordà and Taylor (2023). LP-DiD is a convenient and flexible regression-based framework for implementing Difference-in-Differences with multiple time periods. It uses panel data to estimate the average effect of a treatment under the assumptions of no-anticipation and (conditional) parallel trends. It can provide both dynamic event study estimates that track the treatment effect path at each time horizon after treatment, and 'pooled' estimates of the overall average effect in a post-treatment time window. Treatment can be absorbing (once a unit gets treated, it stays treated) or non-absorbing (units can enter and exit treatment multiple times). If treatment is non-absorbing, the nonabsorbing() option must be specified. The estimation sample is restricted to units entering treatment and 'clean' controls, thus avoiding the 'negative-weights' bias of TWFE estimators. The baseline version estimates a variance-weighted effect with strictly positive weights. The reweighed version (implemented through the rw option) estimates an equally-weighted average effect. LP-DiD offers flexibility in using either the last period before treatment (the default option) or an average of pre-treatment periods (the pmd() option) as the pre-treatment base period. The command allows inclusion of control variables, including pre-treatment lags of the outcome.

Language: Stata
Requires: Stata version 13
Keywords: local projections; difference-in-difference; DiD (search for similar items in EconPapers)
Date: 2023-12-03, Revised 2024-07-01
Note: This module should be installed from within Stata by typing "ssc install lpdid". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/l/lpdid.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lpdid.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lpdidtestdata1.dta supplementary data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/l/lpdidtestdata2.dta supplementary data file (application/x-stata)

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

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-03-30
Handle: RePEc:boc:bocode:s459273