I'm having this error message when I try to see the diagnostic plots of the following model, with the function "gam.check":
mod <- zigam(PDS ~ as.factor(Site) + as.factor(Gear) + s(month, k=9, bs="tp"),
offset(site.agressive$Effort), data=site.agressive,
family=poisson, link="log")
summary(mod$fit.gam)
plot(mod$fit.gam, all.terms=T, shade=T)
gam.check(mod$fit.gam)
Any ideas on how to solve this problem?