Set of functions to estimate, report and visualize results in staggered difference-in-differences (DiD) setup using the imputation approach of Borusyak, Jaravel, and Spiess (2021). The standard DiD setup involves two periods and two groups (one treated and one untreated), it relies on parallel trend assumption to estimate the treatment effect of the treated. The staggered DiD setup is the generalization of this approach to multiple periods and multiple groups (i.e. individuals treated at different time periods.). Recent literature stress out the need to not use the standard two-way fixed effect (TWFE) regression to estimate those models. This package implements a method of imputation to estimate the average treatment effect. The package uses untreated observations to predict the counterfactual outcome on treated observations and provide the appropriate Standard errors. It provides ways to test for parallel trends.
Package details |
|
---|---|
Maintainer | |
License | MIT + file LICENSE |
Version | 0.0.4 |
URL | https://github.com/CdfInnovLab/didImputation |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.