1-使用mice包的with()函数时,我发现并不合适,因为我的缺失指标基本是独立的,与其他变量之间基本不存在相关关系,那么with()中的formula怎么设置呢?或者不使用with函数可以吗?
2-我强制设置了with中的formula之后,使用pool函数时,显示结果“Error in pool(imps) : The object must have class 'mira'”,请问这是什么原因呢?
我的代码如下:
- library(mice)
- micedata <- mice(data,m=3)
- imps <- with(data,lm(var1~var2))
- pooldata <-pool(imps)


雷达卡





京公网安备 11010802022788号







