line

0th

Percentile

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 x-y 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: Addison-Wesley.

See Also

lm.

Aliases
  • line
  • residuals.tukeyline
Examples
library(stats) require(graphics) plot(cars) (z <- line(cars)) abline(coef(z)) ## Tukey-Anscombe Plot : plot(residuals(z) ~ fitted(z), main = deparse(z$call))
Documentation reproduced from package stats, version 3.3.3, License: Part of R 3.3.3

Community examples

Looks like there are no examples yet.