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 (2018) <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.

Getting started

Package details

AuthorBrantly Callaway [aut, cre], Pedro H.C. Sant'Anna [aut]
MaintainerBrantly Callaway <[email protected]>
LicenseGPL-2
Version1.2.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("did")

Try the did package in your browser

Any scripts or data that you put into this service are public.

did documentation built on Oct. 17, 2018, 1:03 a.m.