Learn R Programming

robustbase (version 0.92-7)

summary.lts: Summary Method for LTS objects

Description

summary method for class "lts".

Usage

"summary"(object, correlation = FALSE, ...)
"print"(x, digits = max(3, getOption("digits") - 3), signif.stars = getOption("show.signif.stars"), ...)

Arguments

object
an object of class "lts", usually, a result of a call to ltsReg.
correlation
logical; if TRUE, the correlation matrix of the estimated parameters is returned and printed.
x
an object of class "summary.lts", usually, a result of a call to summary.lts.
digits
the number of significant digits to use when printing.
signif.stars
logical indicating if “significance stars” should be printer, see printCoefmat.
...
further arguments passed to or from other methods.

Value

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).

Details

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.

See Also

ltsReg; the generic summary.

Examples

Run this code
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)

Run the code above in your browser using DataLab