You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sythdid: Synthetic Difference in Difference Estimation
This package implements the synthetic difference-in-differences estimation procedure, along with a range of inference and graphing procedures, following the work of the author. The package draws on R and Julia code for optimization and Stata code for implementation in contexts with staggered adoption over multiple treatment periods (as well as in a single adoption period as in the original code). The package extends the functionality of the original code, allowing for estimation in a wider range of contexts. Overall, this package provides a comprehensive toolkit for researchers interested in using the synthetic difference-in-differences estimator in their work.
Instalation
pipinstallsynthdid
Usage
Input class Synthdid
outcome: Outcome variable (numeric)
unit: Unit variable (numeric or string)
time: Time variable (numeric)
quota: Dummy of treatement, equal to 1 if units are treated, and otherwise 0 (numeric)
Methods:
.fit(cov_method: Literal["optimized", "projected"] | None): Estimates the ATE, as well as the time and unit weights. Can use covariates and fit them with the method specified in cov_method
.vcov(method: Literal["placebo", "bootstrap", "jackknife"], n_reps:int = 50): Estimates the standard error of the ATE estimator