Skip to content
Prev 959 / 7420 Next

low predicted vales in GAMs (Anna Renwick)

Dear All

I wanted to thank everyone for their helpful comments. With your help, and
that of Simon Wood, I now realise that the reason I have low predicted
values is because I have so many zeros in my data. As the model structure I
have constructed specifies that the mean must always be positive then the
model over-predicts the zero counts and in order not to predict more counts
that there actually are it under-estimates the non zeros counts (this
underestimation can be quite large due to the high number of zeros).


So one thing I am thinking of is to try a zero-inflated model. I have looked
at the COZIGAM package but you do not seem to be able use an offset with it.
I was wondering if anybody knows of a package where weighted zero-inflated
GAM models with an offset can be run.

Many thanks,

Anna

Dr Anna R. Renwick
Research Ecologist
British Trust for Ornithology, 
The Nunnery, 
Thetford, 
Norfolk, 
IP24 2PU, 
UK
Tel: +44 (0)1842 750050; Fax: +44 (0)1842 750030 

-----Original Message-----
From: r-sig-ecology-bounces at r-project.org
[mailto:r-sig-ecology-bounces at r-project.org] On Behalf Of Highland
Statistics Ltd.
Sent: 12 December 2009 11:28
To: r-sig-ecology at r-project.org
Subject: Re: [R-sig-eco] low predicted vales in GAMs (Anna Renwick)
the
m4<-gam(count~s(east,north,k=10)+ez+cv01+cv03+cv04+cv05+cv07+mtemp+mtotalrai
Is this really an integer?
deviance
Why would you use a weighting factor in a Poisson/quasi-Poisson GLM/GAM? 
See also the weights text for the help file for glm. Not sure what it 
would be doing.
if
models.
you seem to have a very large overdispersion. But that is another 
problem. I think your number of squares should actually be used in the 
offset (the log obviously).

Alain