gam
model formulae. The function does not evaluate a (spline)
smooth - it exists purely to help set up a model using spline based smooths.s(..., k=-1,fx=FALSE,bs="tp",m=0)
k
should not be less than the dimension of the
null space of the penalty for the term (TRUE
) or a penalized regression spline (FALSE
)."cr"
for a cubic regression spline or
"tp"
for a thin plate regression spline. Only thin plate
regression splines can be used for multidimensional smooths, so this
argument only has an effect for univariats()
with all the
options spelled out explicitly.s(x,14|f)
(results in pure
regression spline smooth of one variable with a 14 knot cubic
regression spline basis), s(x,z,20)
(a penalized regression
spline of 2 covariates using a 20 dimensional t.p.r.s. basis),
etc. but this feature is purely for back compatibility reasons, and
may not be maintained indefinitely.gam