Re: [R] question about predict.gam

2007-10-05 Thread Simon Wood
On Friday 05 October 2007 16:25, Michela Leone wrote: > I'm fitting a Poisson gam model, say > > model<-gam(a65tm~as.factor(day.week > )+as.factor(week)+offset(log(pop65))+s(time,k=10,bs="cr",fx=FALSE,by=NA,m=1 >),sp=c( 0.001),data=dati1,family=poisson) > > > > Currently I've difficulties in obtain

[R] question about predict.gam

2007-10-05 Thread Michela Leone
I'm fitting a Poisson gam model, say model<-gam(a65tm~as.factor(day.week )+as.factor(week)+offset(log(pop65))+s(time,k=10,bs="cr",fx=FALSE,by=NA,m=1),sp=c( 0.001),data=dati1,family=poisson) Currently I've difficulties in obtaining right predictions by using gam.predict function with MGCV packag