[R] How to fix offset warning running a GAM in R's MGCV package?
|@uren@||d|er1997 @end|ng |rom hotm@||@co@uk
Fri Feb 1 12:17:50 CET 2019
I am trying to run a GAM using MGCV. When I include offset:
gam1 <- gam(Presence~s(Spd)+offset(effort_m), family=binomial, data=porp)
I receive the following warning:
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
How can I correct this?
[[alternative HTML version deleted]]
More information about the R-help