小编Dan*_*ham的帖子

外部函数调用中的 NA/NaN/Inf (arg 5)

我不知道我是否需要删除一些数据,或者这里发生了什么。模型 1 和 2 工作得很好。Model 3 无法运行。

model1 <- clogit(Used ~ Slope + strata(OBJECTID), data=old)

model2 <- clogit(Used ~ Aspect + strata(OBJECTID), data=old)

model3 <- clogit(Used ~ Slope + Aspect + strata(OBJECTID), data=old)
Run Code Online (Sandbox Code Playgroud)

模型 3 给出以下错误:

> Error in fitter(X, Y, strats, offset, init, control, weights =
> weights,  :    NA/NaN/Inf in foreign function call (arg 5)
Run Code Online (Sandbox Code Playgroud)

它还给出以下警告:

> In fitter(X, Y, strats, offset, init, control, weights = weights,  :  
> Ran out of iterations and did not converge
Run Code Online (Sandbox Code Playgroud)

我不太关心警告,因为其他模型也给出了这个,但实际上有输出。 …

r cox-regression na logistic-regression

5
推荐指数
1
解决办法
3692
查看次数

标签 统计

cox-regression ×1

logistic-regression ×1

na ×1

r ×1