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).## S3 method for class 't2.smooth.spec':
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.t2