lm.summary {base} | R Documentation |
summary
method for class "lm"
.
## S3 method for class 'lm'
summary(object, correlation = FALSE, ...)
## S3 method for class 'summary.lm'
print(x, digits = max(3, getOption("digits") - 3),
symbolic.cor = p > 4,
signif.stars = getOption("show.signif.stars"), ...)
object |
an object of class |
x |
an object of class |
correlation |
logical; if |
digits |
the number of significant digits to use when printing. |
symbolic.cor |
logical. If |
signif.stars |
logical. If |
... |
further arguments passed to or from other methods. |
print.summary.lm
tries to be smart about formatting the
coefficients, standard errors, etc. and additionally gives
“significance stars” if signif.stars
is TRUE
.
The function summary.lm
computes and returns a list of summary
statistics of the fitted linear model given in object
, using
the components (list elements) "call"
and "terms"
from its argument, plus
residuals |
the weighted residuals, the usual residuals
rescaled by the square root of the weights specified in the call to
|
coefficients |
a |
sigma |
the square root of the estimated variance of the random error
where |
df |
degrees of freedom, a 3-vector |
fstatistic |
(for models including non-intercept terms) a 3-vector with the value of the F-statistic with its numerator and denominator degrees of freedom. |
r.squared |
where |
adj.r.squared |
the above |
cov.unscaled |
a |
correlation |
the correlation matrix corresponding to the above
|
The model fitting function lm
, summary
.
##-- Continuing the lm(.) example:
coef(lm.D90)# the bare coefficients
sld90 <- summary(lm.D90 <- lm(weight ~ group -1))# omitting intercept
sld90
coef(sld90)# much more