predict.bagEarth

0th

Percentile

Predicted values based on bagged Earth and FDA models

Predicted values based on bagged Earth and FDA models

Keywords
regression
Usage
## S3 method for class 'bagEarth':
predict(object, newdata = NULL, type = "response", ...)
## S3 method for class 'bagFDA':
predict(object, newdata = NULL, type = "class", ...)
Value

  • a vector of predictions

Note

If the predictions for the original training set are needed, there are two ways to calculate them. First, the original data set can be predicted by each bagged earth model. Secondly, the predictions form each bootstrap sample could be used (but are more likely to overfit). If the original call to bagEarth or bagFDA had keepX = TRUE, the first method is used, otherwise the values are calculated via the second method.

See Also

bagEarth

Aliases
Examples
data(trees)
fit1 <- bagEarth(Volume ~ ., data = trees, keepX = TRUE)
fit2 <- bagEarth(Volume ~ ., data = trees, keepX = FALSE)
hist(predict(fit1) - predict(fit2))
Documentation reproduced from package caret, version 5.07-001, License: GPL-2

Community examples

Looks like there are no examples yet.