Re: [R] GAM and Poisson distribution

2008-11-17 Thread Simon Wood
Sally, Is Kept.CPUE discrete valued? If it isn't then the poisson family won't like it, and it would be better to use quasipoisson, if the variance proportional to mean is the right assumption. (mgcv 1.5 includes a Tweedie family, which would be an alternative, but it's not ready for release ye

Re: [R] GAM and Poisson distribution

2008-11-15 Thread Ben Bolker
sallyr wrote: > > Hi -I'm running a GAM with 7 explanatory variables with a Poisson error > structure. All of the variables are continuous so I'm getting error > messages in R. > > cod.fall.full.gam.model<-gam(Kept.CPUE~s(HOUR)+s(LAT_dec)+s(LONG_dec)+s(meantemp_C)+s(meandepth_fa)+s(change_d

[R] GAM and Poisson distribution

2008-11-14 Thread sallyr
Hi -I'm running a GAM with 7 explanatory variables with a Poisson error structure. All of the variables are continuous so I'm getting error messages in R. cod.fall.full.gam.model<-gam(Kept.CPUE~s(HOUR)+s(LAT_dec)+s(LONG_dec)+s(meantemp_C)+s(meandepth_fa)+s(change_depth)+s(seds), data=cod.fall.