hello everyone.
Ive compiled data on a large amount of countries to perform synthetic control.
yesterday i was running synthetic control on life expectancy with my control variables being GDP GNI population and unemployment. This was working. then I wanted to perform synthetic control on homicides with the same controls as this is what i was mainly interested in. Since there were gaps in my homicide data the code wouldn't run. So today i collected a bunch of homicide data with countries that had no gaps. yet when i run my synth command shown below
synth homicide GDP GNI Population Unemployement, trunit (32) trperiod(2016) xperiod(2005(1)2015) nested fig
i get
First Step: Data Setup
-------------------------------------------------------------------------------------------
St: operator invalid
r(198);
and the code doesnt run.
attached below are the two excel sheets. The first one will run synthetic control on life expectancy the new synthetic control sheet is the one that is giving me the operator invalid.
i can load both data sets in stata and am able to get them balanced by typing tsset Country Year
any help would be very much appreciated.
Related Posts with help with Synthetic control
Q-Q plots - why is Tukey Mean-Difference plots not an option in Stata?Q-Q plot combined with Tukey mean-difference plot - re 'Visualizing Data by Cleveland (1993) Dear A…
stpm2, initial values not feasibleHello, I am trying to run a flexible Parametric model in Stata. I study various outcomes and I run …
Combine graphs created with -mlowess-Hello Statalist, is there any option to combine several graphs I created with HTML Code: mlowess ?…
Prompt for values interactively in do fileDear Statalist, Is there any way to prompt for local variable with pattern i.e. numeric only/alpha …
WLS = reg + aweights?I would like to understand whether I apply the regression technique "weighted least squares (WLS)" b…
Subscribe to:
Post Comments (Atom)
0 Response to help with Synthetic control
Post a Comment