summary.lts | R Documentation |
summary
method for class "lts"
.
## S3 method for class 'lts'
summary(object, correlation = FALSE, ...)
## S3 method for class 'summary.lts'
print(x, digits = max(3, getOption("digits") - 3),
signif.stars = getOption("show.signif.stars"), ...)
object |
an object of class |
correlation |
logical; if |
x |
an object of class |
digits |
the number of significant digits to use when printing. |
signif.stars |
logical indicating if “significance stars”
should be printer, see |
... |
further arguments passed to or from other methods. |
These functions compute and print summary statistics for weighted least square estimates with weights based on LTS estimates. Therefore the statistics are similar to those for LS but all terms are multiplied by the corresponding weight.
Correlations are printed to two decimal places: to see the actual correlations
print summary(object)$correlation
directly.
The function summary.lts
computes and returns a list of summary
statistics of the fitted linear model given in object
, using
the components of this object (list elements).
residuals |
the residuals - a vector like the response |
coefficients |
a |
sigma |
the estimated scale of the reweighted residuals
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
|
ltsReg
; the generic summary
.
data(Animals2)
ltsA <- ltsReg(log(brain) ~ log(body), data = Animals2)
(slts <- summary(ltsA))
## non-default options for printing the summary:
print(slts, digits = 5, signif.stars = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.