我正在尝试使用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
我该如何纠正?