| summary.earth {earth} | R Documentation |
Summary method for earth objects.
## S3 method for class 'earth'
summary(object = stop("no 'object' arg"),
details = FALSE, style = c("h", "pmax", "max", "C", "bf"),
decomp = "anova", digits = getOption("digits"),
fixed.point=TRUE, ...)
## S3 method for class 'summary.earth'
print(x = stop("no 'x' arg"),
details = x$details, decomp = x$decomp,
digits = x$digits, fixed.point = x$fixed.point, ...)
object |
An |
x |
A |
details |
Default is FALSE.
Use TRUE
to print more information about |
style |
Formatting style. One of |
decomp |
Specify how terms are ordered.
Default is |
digits |
The number of significant digits. |
fixed.point |
Method of printing numbers in matrices.
Default is
(Intercept) 15.029
h(temp-58) 0.313
h(234-ibt) -0.046
...
whereas
(Intercept) 1.5e+01
h(temp-58) 3.1e-01
h(234-ibt) -4.6e-02
...
Matrices with two or fewer rows are never printed with a fixed point. |
... |
Extra arguments are passed to |
The value is the same as that returned by earth
but with the following extra components.
strings |
String(s) created by |
digits |
|
details |
|
decomp |
|
fixed.point |
The corresponding arguments, passed on to |
The printed Estimated importance uses evimp
with the nsubsets criterion.
The most important predictor is printed first, and so on.
a <- earth(Volume~ ., data = trees) summary(a, digits = 2) # yields: # Call: earth(formula=Volume~., data=trees) # # coefficients # (Intercept) 27.25 # h(Girth-14) 6.18 # h(14-Girth) -3.27 # h(Height-72) 0.49 # # Selected 4 of 6 terms, and 2 of 2 predictors # Importance: Girth, Height # Number of terms at each degree of interaction: 1 3 (additive model) # GCV 11 RSS 197 GRSq 0.96 RSq 0.98