Usage
## S3 method for class 'earth':
predict(object = stop("no 'object' arg"), newdata = NULL,
type = c("link", "response", "earth", "class", "terms"),
thresh = .5, trace = FALSE, ...)Arguments
object
An earth object.
This is the only required argument. newdata
Make predictions using newdata, which
can be a dataframe, a matrix, or a vector with length equal to a multiple of the row length
of the original input matrix x.
Default is NULL, meaning return the fitted values from
type
Type of prediction.
One of "link" (default), "response", "earth", "class", or "term".
See the Note below.
thresh
Probability threshold from 0 to 1, default is .5.
Only applies for binomial models with a binary response.
See the Note below.
trace
Default FALSE. Set to TRUE to see which data, subset, etc. predict.earth is using.
...
Unused, but provided for generic/method consistency.