predict.LaMa_matrices {LaMa} | R Documentation |
Build the prediction design matrix based on new data and model_matrices object created by make_matrices
Description
Build the prediction design matrix based on new data and model_matrices object created by make_matrices
Usage
## S3 method for class 'LaMa_matrices'
predict(object, newdata, ...)
Arguments
object |
model matrices object as returned from |
newdata |
data frame containing the variables in the formula and new data for which to evaluate the basis |
... |
needs to be a |
Value
prediction design matrix for newdata
with the same basis as used for model_matrices
Examples
modmat = make_matrices(~ s(x), data.frame(x = 1:10))
Z_predict = predict(modmat, data.frame(x = 1:10 - 0.5))
[Package LaMa version 2.0.5 Index]