smooth.construct
method function for creating tensor product smooths from any
combination of single penalty marginal smooths, using the construction of Wood, Scheipl and Faraway (2013).
"smooth.construct"(object, data, knots)
t2.smooth.spec
,
usually generated by a term like t2(x,z)
in a gam
model formulaby
variable) required by this term,
with names corresponding to object$term
(and object$by
). The by
variable
is the last element.data
.
Can be NULL
. See details for further information."t2.smooth"
.
t2
, te
, smooth.construct
and
smooth.terms
. The construction employed here produces tensor smooths for which the smoothing penalties are non-overlapping portions of the identity matrix. This makes their estimation by mixed modelling software rather easy.
Wood, S.N., F. Scheipl and J.J. Faraway (2013) Straightforward intermediate rank tensor product smoothing in mixed models. Statistics and Computing 23: 341-360.
t2