Work

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
Language: English
Open Access status: gold
Estimated APC paid: $1,200
OpenAlex ID: W4417416517
Cites: 12
Cited by: 1
Related to: