Synth for Stata
安裝 Synth
ssc install synth, replace all
使用例子
synth depvar predictorvars , trunit(#) trperiod(T0+1) figure
where
depvar is the outcome variable,
predictorvars is the set of predictors,
trunit(#) specifies which is the affected unit
trperiod(#) specifies which is the period of the intervention
figure requests a figure with the results