predict.bagEarth: Predicted values based on bagged Earth and FDA models
Description
Predicted values based on bagged Earth and FDA models
Usage
## S3 method for class 'bagEarth':
predict(object, newdata = NULL, type = "response", ...)
## S3 method for class 'bagFDA':
predict(object, newdata = NULL, type = "class", ...)
Arguments
object
Object of class inheriting from bagEarth
newdata
An optional data frame or matrix in which to look for variables with
which to predict. If omitted, the fitted values are used (see note below).
type
The type of prediction. For bagged earth regression model, type = "response" will produce a numeric vector of the usual model predictions. earth<