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 setups with more than two periods and with variation in treatment timing using the methods developed in Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>. 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.
- Version2.1.2
- R versionunknown
- LicenseGPL-2
- Needs compilation?No
- did citation info
- Last release07/20/2022
Documentation
- VignetteProblems with two-way fixed-effects event-study regressions
- VignetteGetting Started with the did Package
- VignetteWriting Extensions to the did Package
- VignetteIntroduction to DiD with Multiple Time Periods
- VignettePre-Testing in a DiD Setup using the did Package
- MaterialREADME
- MaterialNEWS
- In ViewsCausalInference
- In ViewsEconometrics
Team
Brantly Callaway
MaintainerShow author detailsPedro H. C. Sant'Anna
Show author detailsRolesAuthor
Insights
Last 30 days
This package has been downloaded 4,329 times in the last 30 days. Consider this 'mid-tier influencer' status—if it were a TikTok, it would get a nod from nieces and nephews. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 187 times.
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Last 365 days
This package has been downloaded 42,565 times in the last 365 days. The downloads are officially high enough to crash an underfunded departmental server. Quite an accomplishment! The day with the most downloads was May 14, 2024 with 265 downloads.
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Data provided by CRAN
Binaries
Dependencies
- Imports8 packages
- Suggests5 packages
- Reverse Imports2 packages
- Reverse Suggests3 packages