处理单元的被预测变量不能有缺失值,否则会有这样的提示:treated unit: for 1 of out 1 units outcome variable y is missing in 2000 pre-intervention MSPE period - check mspeperiod()
2.控制组(UNtreated unit)
控制组中部分变量有缺失值时,synth在计算时会有这样的过程:
control units: for 13 of out 270 units missing obs for predictor x in period 2012 -ignored for averaging
即预测变量x 2012年的270个个体中,有13个缺失值。通过平均来忽略。
但是某一变量不能出现某一年数据都缺失的情况,否则会有这样的提示:
control units: for at least one unit predictor x is missing for ALL periods specified
比如预测变量x在2000年数据全部缺失,计算也是没有办法进行的。可以选择换其他的预测变量。如果缺失值前后的数据完整,可以用插值法补齐。
控制组的被预测变量也不能有缺失值,否则会有这样的提示:
control units: for 1 of out 29 units outcome variable y is missing in 2000 pre-intervention MSPE period - check mspeperiod()
你好,请教您,我的y数据没有缺失值,为什么会出现treated unit: for 1 of out 1 units outcome variable y is missing in 597 pre-intervention MSPE period - check mspeperiod()
invalid syntax呢
请问:我的控制组的被预测变量没有缺失值,还是提示:
control units: for 1 of out 29 units outcome variable y is missing in 2000 pre-intervention MSPE period - check mspeperiod()是为什么呢?谢谢