| summary.bagEarth | R Documentation |
The function shows a summary of the results from a bagged earth model
## S3 method for class 'bagEarth'
summary(object, ...)
## S3 method for class 'bagFDA'
summary(object, ...)
object |
an object of class "bagEarth" or "bagFDA" |
... |
optional arguments (not used) |
The out-of-bag statistics are summarized, as well as the distribution of the number of model terms and number of variables used across all the bootstrap samples.
a list with elements:
modelInfo: a matrix with the number of model terms and variables used
oobStat: a summary of the out-of-bag statistics
bagEarthCall: the original call to bagEarth
Max Kuhn
## Not run:
if (caret:::has_packages("earth")) {
data(trees)
set.seed(9655)
fit <- bagEarth(trees[, -3], trees[, 3])
summary(fit)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.