powered by
gam
## S3 method for class 'gam': model.matrix(object, ...)
gam()
predict.gam
newdata
type="lpmatrix"
object
n <- 15 x <- runif(n) y <- sin(x*2*pi) + rnorm(n)*.2 mod <- gam(y~s(x,bs="cc",k=6),knots=list(x=seq(0,1,length=6))) model.matrix(mod)
Run the code above in your browser using DataLab