Hi Statalist users,
I'm using the synth command (synthetic control) for a balanced panel data and facing the following situation. osin3 is my dep variable, osin3(1996(1)1998) and lgdp are the two predictor variables. This is what I'm running:
synth osin3 osin3(1996(1)1998) lgdp, mspeperiod(1996(1)1998) trunit(26) trperiod(1999) nested keep(test1) replace
To get the following:
control units: for 8 of out 42 units missing obs for predictor osin3(1996(1)1998) in period 1996 -ignored for averaging
control units: for 2 of out 42 units missing obs for predictor osin3(1996(1)1998) in period 1997 -ignored for averaging
control units: for 2 of out 42 units missing obs for predictor lgdp in period 1994 -ignored for averaging
control units: for 8 of out 42 units outcome variable osin3 is missing in 1996 pre-intervention MSPE period - check mspeperiod()
invalid syntax
r(198);
The question I have is the following: do you need to have NO missing observations to run synth? Or more generally, how is synth dealing with missing observations? From looking at the synth ado file, it looks like missing observations could be a problem for the routine to run. Does anyone have any suggestion or know what could be happening? For instance, is there any rule of thumb of why 8 of out 42 units is preventing the code to run correctly? or 2 of out 42? Any thought would be greatly appreciated and extremely helpful.
Thanks!
Cesar
I'm using the synth command (synthetic control) for a balanced panel data and facing the following situation. osin3 is my dep variable, osin3(1996(1)1998) and lgdp are the two predictor variables. This is what I'm running:
synth osin3 osin3(1996(1)1998) lgdp, mspeperiod(1996(1)1998) trunit(26) trperiod(1999) nested keep(test1) replace
To get the following:
control units: for 8 of out 42 units missing obs for predictor osin3(1996(1)1998) in period 1996 -ignored for averaging
control units: for 2 of out 42 units missing obs for predictor osin3(1996(1)1998) in period 1997 -ignored for averaging
control units: for 2 of out 42 units missing obs for predictor lgdp in period 1994 -ignored for averaging
control units: for 8 of out 42 units outcome variable osin3 is missing in 1996 pre-intervention MSPE period - check mspeperiod()
invalid syntax
r(198);
The question I have is the following: do you need to have NO missing observations to run synth? Or more generally, how is synth dealing with missing observations? From looking at the synth ado file, it looks like missing observations could be a problem for the routine to run. Does anyone have any suggestion or know what could be happening? For instance, is there any rule of thumb of why 8 of out 42 units is preventing the code to run correctly? or 2 of out 42? Any thought would be greatly appreciated and extremely helpful.
Thanks!
Cesar
Comment