didunit: a unit-level multi-period differences-in-differences estimator in R
Year: 2025
Type: software-paper
Abstract: This R package estimates multi-period differences-in-differences at the level of the treated unit. This allows more flexible aggregation over estimators whose most granular differences-in-differences estimate is at the treated time and is useful in applications where there is considerable heterogeneity within the treated time group or when units treated at the same time receive somewhat different treatments. For example, when units are treated with different doses, they can be aggregated on the basis of dose to derive a dose-response function. Regional heterogeneity, as illustrated by a cross-country study on democratization, is another example. The software’s calls have the same syntax as the did package and agree with those estimates when panels are balanced and covariates are not relevant.
Source: SoftwareX
Authors: Ransi Clark, Jonathan N. Katz, R.Michael Alvarez
Institution: California Institute of Technology
Language: English
Subfield: Statistics and Probability
Field: Mathematics
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $1,200
OpenAlex ID: W4417416517
