Displaying 1 result from an estimated 1 matches for "mod_spline".
Did you mean:
mod_speling
2008 Oct 01
1
Simon Wood GAMsetup
...his does no longer work and gives
me the following error:
Error in gam.setup(G) : First argument 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 obt...