楼主: 东永裴
2255 1

[原创博文] 当所有变量同时缺失时 SAS多重插补无效? [推广有奖]

  • 0关注
  • 0粉丝

高中生

7%

还不是VIP/贵宾

-

威望
0
论坛币
5 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
123 点
帖子
15
精华
0
在线时间
21 小时
注册时间
2012-4-17
最后登录
2014-4-21

楼主
东永裴 发表于 2012-6-15 20:42:17 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
新人写滴程序如下:
data an;
input fd yd;
cards;
1597        1693
1465        1556
1616        1623
1185        1355
1231        1389
.            1500
1593        1717
1579        1832
1379        1468
1285        1368
.       .
1670        .
;
proc mi data=an seed=1000 nimpute=5 out=outam;
var fd yd;
run;
proc print data=outam(firstobs=49 obs=60);
var fd yd;
run;

数据集第11行 2个变量全部缺失  填补输出结果为:
                                 Obs       fd         yd

                                                49    1597.00    1693.00
                                                50    1465.00    1556.00
                                                51    1616.00    1623.00
                                                52    1185.00    1355.00
                                                53    1231.00    1389.00
                                                54    1345.77    1500.00
                                                55    1593.00    1717.00
                                                56    1579.00    1832.00
                                                57    1379.00    1468.00
                                                58    1285.00    1368.00
                                                59        .          .
                                                60    1670.00    1787.28


最后那两个还是没填补  这不是我想要的结果  想问下各位网友  这是为什么 有什么解决方法没有。。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:多重插补 First Input print cards 程序

沙发
snoozer 发表于 2012-6-16 00:44:50
PROC MI imputed one using the value of the other, based on the correlation between these two variables. When both are missing, none of them can be imputed. In this case, you have to delete this observation.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-29 16:38