Learn R Programming

caret (version 5.17-7)

summary.bagEarth: Summarize a bagged earth or FDA fit

Description

The function shows a summary of the results from a bagged earth model

Usage

## S3 method for class 'bagEarth':
summary(object, ...)
## S3 method for class 'bagFDA':
summary(object, ...)

Arguments

object
an object of class "bagEarth" or "bagFDA"
...
optional arguments (not used)

Value

  • a list with elements
  • modelInfoa matrix with the number of model terms and variables used
  • oobStata summary of the out-of-bag statistics
  • bmarsCallthe original call to bagEarth

Details

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 of the bootstrap samples.

Examples

Run this code
data(trees)
fit <- bagEarth(trees[,-3], trees[3])
summary(fit)

Run the code above in your browser using DataLab