did: Treatment Effects with Multiple Periods and Groups

The standard Difference-in-Differences (DID) setup involves two periods and two groups – a treated group and untreated group. Many applications of DID methods involve more than two periods and have individuals that are treated at different points in time. This package contains tools for computing average treatment effect parameters in Difference in Differences models with more than two periods and with variation in treatment timing using the methods developed in Callaway and Sant'Anna (2019) <https://ssrn.com/abstract=3148250>. The main parameters are group-time average treatment effects which are the average treatment effect for a particular group at a a particular time. These can be aggregated into a fewer number of treatment effect parameters, and the package deals with the cases where there is selective treatment timing, dynamic treatment effects, calendar time effects, or combinations of these. There are also functions for testing the Difference in Differences assumption, and plotting group-time average treatment effects.

Version: 1.2.3
Depends: R (≥ 2.10)
Imports: BMisc (≥ 1.3.1), MASS, pbapply, stats, ggplot2, knitr, utils, gridExtra
Suggests: rmarkdown
Published: 2020-02-18
Author: Brantly Callaway [aut, cre], Pedro H.C. Sant'Anna [aut]
Maintainer: Brantly Callaway <bmcallaw at olemiss.edu>
License: GPL-2
NeedsCompilation: no
Materials: README NEWS
CRAN checks: did results

Downloads:

Reference manual: did.pdf
Vignettes: DID Basics
Package source: did_1.2.3.tar.gz
Windows binaries: r-devel: did_1.2.3.zip, r-release: did_1.2.3.zip, r-oldrel: did_1.2.3.zip
macOS binaries: r-release: did_1.2.3.tgz, r-oldrel: did_1.2.3.tgz
Old sources: did archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=did to link to this page.