运行EM方法GLM会在R中产生NA软件包icdGLM

问题描述

我正在尝试使用icdGLM软件包通过权重方法将EM应用于广义线性模型(GLM)。获取指标输出值的问题显示为return。有人可以帮忙吗?

以下是代码:

NA

我得到以下输出:

library(icdGLM)
data<-as.data.frame(read.csv(file.choose()))

#UI.data<-as.data.frame(data)
attach(data)
attributes(data)
head(data)

df2<-data[complete.cases(data),]

CC<-glm(y ~ x1 + x2 + x3,family = binomial(link=("logit")),data=df2)
summary(CC)

complete.data<-expand_data(data = data[,1:3],y = data[,4],missing.x = 1:3,value.set = 0:1)
print(complete.data)
example2 <- icdglm(y ~ x1 + x2 + x3,family = binomial(link = "logit"),data = complete.data$data,weights = complete.data$weights,indicator = complete.data$indicator)
summary(example2)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...