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

# S3 method for bagEarth
summary(object, ...)

# S3 method for bagFDA
summary(object, ...)

Arguments

object

an object of class "bagEarth" or "bagFDA"

...

optional arguments (not used)

Value

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

bmarsCall

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

Examples

if (FALSE) { data(trees) set.seed(9655) fit <- bagEarth(trees[,-3], trees[3]) summary(fit) }