chaisemartinPackages / did_multiplegt

Estimation in Difference-in-Difference (DID) designs with multiple groups and periods.
7 stars 3 forks source link

did_multiplegt

Library of Estimators in Difference-in-Difference (DID) designs with multiple groups and periods.

Setup

Stata

ssc install did_multiplegt, replace

Syntax

Stata

did_multiplegt (mode) Y G T D [if] [in] [, options]

R

install.packages("DIDmultiplegt", force = TRUE)

Description

did_multiplegt wraps in a single command all the estimators from de Chaisemartin and D'Haultfoeuille. Depending on the {cmd:mode} argument, this command can be used to call the following estimators.

did_multiplegt updates automatically all the packages above (on average) every 100 runs of the command. Self-updates can be stopped by specifying the command with the no_updates option.

Arguments

Example: Estimating the effect of union membership on wages

Loading the worker-year level data from Vella and Verbeek (1998):

bcuse wagepan, clear

Computing DID_M from de Chaisemartin and D'Haultfoeuille (2020):

did_multiplegt (old) lwage nr year union, breps(100) cluster(nr)
did_multiplegt (stat) lwage nr year union, exact_match

Computing 5 dynamic effects and 2 placebos using DID_l from de Chaisemartin and D'Haultfoeuille (2024a):

did_multiplegt (dyn) lwage nr year union, effects(5) placebo(2) graph_off

Authors

References

de Chaisemartin, C and D'Haultfoeuille, X (2020). American Economic Review, vol. 110, no. 9. Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects

de Chaisemartin, C, D'Haultfoeuille, X, Pasquier, F, Vazquez‐Bare, G (2022). Difference-in-Differences for Continuous Treatments and Instruments with Stayers.

de Chaisemartin, C and D'Haultfoeuille, X (2024a). Review of Economics and Statistics, 1-45. Difference-in-Differences Estimators of Intertemporal Treatment Effects

de Chaisemartin, C and D'Haultfoeuille, X (2024b). Two-way Fixed Effects and Differences-in-Differences Estimators in Heterogeneous Adoption Designs

Vella, F. and Verbeek, M. 1998. Journal of Applied Econometrics 13(2), 163–183. Whose wages do unions raise? a dynamic model of unionism and wage rate determination for young men