How to fix offset warning running a GAM in R's MGCV package?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to fix offset warning running a GAM in R's MGCV package?

lauren fidler
Dear all,

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:

Warning messages:

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?

Kind regards,
Lauren

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.