line
Robust Line Fitting
Fit a line robustly as recommended in Exploratory Data Analysis.
 Keywords
 robust, regression
Usage
line(x, y)
Arguments
 x, y
 the arguments can be any way of specifying xy pairs. See
xy.coords
.
Details
Cases with missing values are omitted.
Long vectors are not supported.
Value

An object of class
"tukeyline"
.Methods are available for the generic functions coef
,
residuals
, fitted
, and print
.
References
Tukey, J. W. (1977). Exploratory Data Analysis, Reading Massachusetts: AddisonWesley.
See Also
lm
.
Examples
library(stats)
require(graphics)
plot(cars)
(z < line(cars))
abline(coef(z))
## TukeyAnscombe Plot :
plot(residuals(z) ~ fitted(z), main = deparse(z$call))
Community examples
Looks like there are no examples yet.