Displaying 1 result from an estimated 1 matches for "dstime".
Did you mean:
stime
2008 Oct 01
1
Simon Wood GAMsetup
...ment is no sort of formula!
What is the correct new syntax?
I also tried to obtain H with gam function under mgcv and I thought that
with the gam function I could obtain H using s(). Is this wrong?
e.g.
mod_spline<-gam(yy~s(x.summer,k=16,bs="cr",fx=FALSE,by=NA,m=1),sp=c(0.001),data=dstime,family=poisson,fit.method="mgcv")
H<-predict.gam(mod_spline,type="lpmatrix")
H<-H[,2:16]
I presume that the vectors obtained using the predict.gam() are different
from the ones obtained using GAM.setup().
Thank for your help.
Looking forward to hearing from you.
Mic...