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.

Total

3,158

Last month

934

Last week

106

Average per day

31

Daily downloads

Total downloads

Description file content

Package
did
Title
Treatment Effects with Multiple Periods and Groups
Version
1.2.0
Description
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) . 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.
Depends
R (>= 2.10)
License
GPL-2
Encoding
UTF-8
LazyData
true
Imports
BMisc, MASS, pbapply, stats, ggplot2, knitr, utils, gridExtra
RoxygenNote
6.1.0
NeedsCompilation
no
Packaged
2018-10-16 20:58:49 UTC; brant
Author
Brantly Callaway [aut, cre], Pedro H.C. Sant'Anna [aut]
Maintainer
Brantly Callaway
Repository
CRAN
Date/Publication
2018-10-16 22:40:03 UTC

install.packages('did')

1.2.0

a month ago

Brantly Callaway

GPL-2

Depends on

R (>= 2.10)

Imports

BMisc, MASS, pbapply, stats, ggplot2, knitr, utils, gridExtra

Discussions