View source: R/predict.cmaRs.R
predict.cmaRs | R Documentation |
This function allows you to obtain the predicted values of a CMARS model.
## S3 method for class 'cmaRs'
predict(object, new = NULL, ...)
object |
A cmaRs object which is obtained by prediction. |
new |
The data for which the fitted values will be constructed. |
... |
Additional parameters affecting the predictions. |
y The predicted values.
## Not run:
# Without \code{MOSEK}, the example code is not executable.
# For installation of Mosek, plese see the documentation of 'Rmosek'.
data("trees", package = "earth")
model.prediction <- cmaRs(Volume ~ ., degree = 5, nk = 20, data = trees)
predict.cmaRs(model.prediction, data = trees)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.