did

Treatment Effects with Multiple Periods and Groups

CRAN Package

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.


Documentation


Team


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.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
197 downloadsMar 4, 2025
165 downloadsMar 5, 2025
144 downloadsMar 6, 2025
121 downloadsMar 7, 2025
85 downloadsMar 8, 2025
67 downloadsMar 9, 2025
147 downloadsMar 10, 2025
202 downloadsMar 11, 2025
124 downloadsMar 12, 2025
150 downloadsMar 13, 2025
195 downloadsMar 14, 2025
92 downloadsMar 15, 2025
94 downloadsMar 16, 2025
149 downloadsMar 17, 2025
146 downloadsMar 18, 2025
170 downloadsMar 19, 2025
191 downloadsMar 20, 2025
161 downloadsMar 21, 2025
85 downloadsMar 22, 2025
61 downloadsMar 23, 2025
168 downloadsMar 24, 2025
207 downloadsMar 25, 2025
203 downloadsMar 26, 2025
158 downloadsMar 27, 2025
153 downloadsMar 28, 2025
87 downloadsMar 29, 2025
90 downloadsMar 30, 2025
143 downloadsMar 31, 2025
187 downloadsApr 1, 2025
187 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
61
207

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