mi过程的mcmc只适用于连续正态变量,方法monotone也只适用于单调缺失的数据,那有哪位高人知道怎样用mi过程填补随意缺失的分类变量,难道只能用随机数填了?谢谢啊。
运行程序提示,“ERROR: A MONOTONE statement is specified for a data set with a non-monotone missing pattern.”晕啊!
data mi2;
set reg;
if h7>=100 then y=1;else y=0;
proc mi data=mi2 out=log nimpute=10
maximum=2 3 5 5 22 22 22 2 2 2 4 5 6 1 2 1 1 1 1 1 1 1 5 2 2 1 1 1 1 1 1 1 3 3 4 4 2 2 2 2 2 4 4 4 4 4 4 4 2 2 1
minimum=1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 -1 -1 -1 -1 -1 -1 -1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0;
var a1 a4 b3-b9 b11 c1 c2 c3 c41 c5 c61-c67 c7 c8 c9
d26 d31-d36 d7 d9 d10 d11
e1-e5 f1-f7 g1 g9 y;
monotone method=propensity;
run;