我用stata的xsmle命令做空间面板数据回归
提示数据不是highly balanced, 因为自变量有缺失值
我的数据缺失值比较多,是一定要用插值法补齐么?
不知道stata有没有其他的命令可以处理这种有缺失值的空间面板回归?
或者matlab,R有相关的程序?
最佳解答:
xsmle fits fixed or random effects spatial models for balanced panel data. however the mi prefix command can be used xsmle in the unbalanced case. for example:
. webuse mheart5 (1)
. mi set mlong (2)
. mi register imputed age bmi (3)
. set seed 29390 (4)
. mi impute mvn age bmi = attack smokes hsgrad female, add(10) (5)
. mi estimate: logistic attack smokes age bmi hsgrad female (6)
转载请注明:数据分析 » 用stata的xsmle的命令做空间面板回归_缺失数据处理