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
Parameter constraints in MLE estimation for SFAHello, I'm using the following commands after which I would like to set up constraints for the param…
Commands to estimate models with variables at different levels?Hi folks, imagine I have a panel data set in which the dependent variable is continuous and is measu…
syntax for calculating mean eGFR loss using joint model (-stjm-)Dear Stata users, I am trying to calculate mean eGFR loss/year using joint model which uses both th…
Getting RR and CI ; when one of the cells is 0 (similar to Exlogistic command)Dear Statalisters, Any advise Getting RR and CI using generalised linear models ; when one of the ce…
Multinomnial logit latent class model in panel dataHi all: I want to apply multinominal logit latent class model in my panel data. I know gsem, lc() o…
Subscribe to:
Post Comments (Atom)
0 Response to help with Synthetic control
Post a Comment