Regenerate the basis matrix for a particular N, W
Slepian sequence
family member, with the additional property that the smoother captures/passes constants
without distortion. Simply rearranges object
. Not intended to be used
directly by user.
1 2  ## S3 method for class 'slp.smooth'
Predict.matrix(object,data)

object 
a smooth specification object, usually generated by a model term 
data 
a list containing just the data required by this term, with names corresponding to

Presumably because most basis sets are larger in size than their computational
burden, mgcv
passes objects around without including the actual basis
vectors. For example, if using basis cr
, the parameters are included in
object
, and then the bases recomputed as needed.
As the slp
basis is significantly more computational in nature, the
basis vectors are saved as part of the object. While mgcv
deletes
the main set of timealigned vectors, this routine restores such vectors
so that predict
and plot
work correctly.
A corrected (reassembled) version of object
, which contains the
X
basis vectors in a format that can be used by predict
or
plot
.
smooth.construct
,
Predict.matrix
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.