如何解决在R的MGCV程序包中运行GAM的偏移警告?

时间:2019-01-28 13:14:55

标签: r gam mgcv

我正在尝试使用MGCV运行GAM。 当我包含偏移量时:

gam1 <- gam(Presence~s(Spd)+offset(effort_m), family=binomial, data=porp)

我收到以下警告:

警告消息:

1: In newton(lsp = lsp, X = G$X, y = G$y, Eb = G$Eb, UrS = G$UrS, L = G$L,  :
  Fitting terminated with step failure - check results carefully
2: glm.fit: fitted probabilities numerically 0 or 1 occurred 
3: glm.fit: fitted probabilities numerically 0 or 1 occurred 

我该如何纠正?

0 个答案:

没有答案