use "C:\Users\Administrator\Desktop\省会小论文\fjzmq.dta"
. xtset pro year
panel variable: pro (strongly balanced)
time variable: year, 1998 to 2017
delta: 1 unit
.
. synth c di cpi pas gpb ur irp rti c(1998) c(2006) c(2014), trunit(3) trperiod(2015) xperiod(2005(1)2014) fig replacekeep(resout) keep(consume_synth)
----------------------------------------------------------------------------------------------------------------------------------------------------------
Synthetic Control Method for Comparative Case Studies
----------------------------------------------------------------------------------------------------------------------------------------------------------
First Step: Data Setup
----------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------
Data Setup successful
----------------------------------------------------------------------------------------------------------------------------------------------------------
Treated Unit: 3
Control Units: 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
----------------------------------------------------------------------------------------------------------------------------------------------------------
Dependent Variable: c
MSPE minimized for periods: 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
Results obtained for periods: 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
----------------------------------------------------------------------------------------------------------------------------------------------------------
Predictors: di cpi pas gpb ur irp rti c(1998) c(2006) c(2014)
----------------------------------------------------------------------------------------------------------------------------------------------------------
Unless period is specified
predictors are averaged over: 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
----------------------------------------------------------------------------------------------------------------------------------------------------------
Second Step: Run Optimization
----------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------
Optimization done
----------------------------------------------------------------------------------------------------------------------------------------------------------
Third Step: Obtain Results
----------------------------------------------------------------------------------------------------------------------------------------------------------
Loss: Root Mean Squared Prediction Error
---------------------
RMSPE | 384.5088
---------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------
Unit Weights: