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

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.

Publication
SSC
Alexander Busch
Alexander Busch
PhD Student in Management

I am a PhD student at MIT researching labour market institutions such as trade unions and collective bargaining.