predict.LaMa_matrices | R Documentation |
make_matrices
Build the prediction design matrix based on new data and model_matrices object created by make_matrices
## S3 method for class 'LaMa_matrices'
predict(object, ...)
object |
model matrices object as returned from |
... |
needs to be a |
prediction design matrix for newdata
with the same basis as used for model_matrices
modmat = make_matrices(~ s(x), data.frame(x = 1:10))
Z_predict = predict(modmat, data.frame(x = 1:10 - 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.