| line {eda} | R Documentation |
Fit a line robustly as recommended in Exploratory Data Analysis.
line(x, y)
coef(object, ...)
residuals(object, type, ...)
fitted(object, ...)
print(x, digits = max(3, getOption("digits") - 3), ...)
x,y |
the arguments can be any way of specifying x-y pairs. |
object |
a tukeyline object, typically the result of
line(*). |
digits |
number of significant digits to use, see print. |
type, ... |
potentially further arguments, required by generic. |
An object of class "tukeyline".
Methods are available for the generic functions coef,
residuals, fitted, and print.
Tukey, J. W. (1977). Exploratory Data Analysis, Reading Massachusetts: Addison-Wesley.
lm.
library(eda) data(cars) plot(cars) (z <- line(cars)) abline(coef(z)) ## Tukey-Anscombe Plot : plot(residuals(z) ~ fitted(z), main = deparse(z$call))