summary.earth {earth}R Documentation

Summary method for 'earth' objects

Description

Summary method for 'earth' objects.

Usage

## S3 method for class 'earth':
summary(object = stop("no 'object' arg"),
        digits = getOption("digits"), ...)

## S3 method for class 'summary.earth':
print(x = stop("no 'x' arg"), digits, ...)

Arguments

object An earth object. This is the only required argument for summary.earth.
x A summary.earth object. This is the only required argument for print.summary.earth.
digits The number of significant digits. For summary.earth the default is getOption("digits"). For print.summary.earth the default is the $digits component of object.
... Extra arguments are passed to format.earth. Use decomp="none" to order the terms as created by the forward.pass.

Value

The value is the same as that returned by earth but with the following extra components.

string String created by format.earth. For multiple response models, a vector of strings.
digits The digits argument, passed on to print.summary.earth.

See Also

earth, format.earth

Examples

a <- earth(Volume~ ., data = trees)
summary(a, digits = 2)

# yields:
#    Call:
#    earth(formula = Volume ~ ., data = trees)
#    
#    Expression:
#      23 
#      +  5.7 * pmax(0,  Girth -     13) 
#      -  2.9 * pmax(0,     13 -  Girth) 
#      + 0.72 * pmax(0, Height -     76) 
#    
#    Number of cases: 31
#    Selected 4 of 5 terms, and 2 of 2 predictors
#    Number of terms at each degree of interaction: 1 3 (additive model)
#    GCV: 11          RSS: 213         GRSq: 0.96      RSq: 0.97

[Package earth version 1.3-4 Index]