CdfInnovLab/didImputation: Staggered difference-in-differences estimation

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.

Getting started

Package details

Maintainer
LicenseMIT + file LICENSE
Version0.0.4
URL https://github.com/CdfInnovLab/didImputation
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("CdfInnovLab/didImputation")
CdfInnovLab/didImputation documentation built on Dec. 17, 2021, 1:57 p.m.