R 错误无法强制类‘&引用;mads“’;到数据帧
您好,我试图拟合逻辑模型,但我得到这些错误R 错误无法强制类‘&引用;mads“’;到数据帧,r,r-mice,R,R Mice,您好,我试图拟合逻辑模型,但我得到这些错误 fit.mis<-glm(Probation ~ Times_UP+Library+Activity,family=binomial,mar) Error in as.data.frame.default(data) : cannot coerce class ‘"mads"’ to a data.frame fit.mis如果要使用截肢数据(截肢的结果)来拟合模型,可以使用 mar$amp 在你的例子中 fit.mis<-glm(
fit.mis<-glm(Probation ~ Times_UP+Library+Activity,family=binomial,mar)
Error in as.data.frame.default(data) :
cannot coerce class ‘"mads"’ to a data.frame
fit.mis如果要使用截肢数据(截肢的结果)来拟合模型,可以使用
mar$amp
在你的例子中
fit.mis<-glm(Probation ~ Times_UP+Library+Activity,family=binomial,mar$amp)
fit.mis看起来mar是一类MAD,是mice包的输出吗?glm要求输入为数据帧,因此无法转换。mar是我尝试转换mar的mice包中的ANCUPT()的输出