\Header{line}{Robust Line Fitting}
\alias{coef.tukeyline}{line}
\alias{fitted.tukeyline}{line}
\alias{print.tukeyline}{line}
\alias{residuals.tukeyline}{line}
\keyword{robust}{line}
\keyword{regression}{line}
\begin{Description}\relax
Fit a line robustly as recommended in \emph{Exploratory Data
Analysis}.\end{Description}
\begin{Usage}
\begin{verbatim}
line(x, y)

coef(object, ...)
residuals(object, type, ...)
fitted(object, ...)
print(x, digits = max(3, getOption("digits") - 3), ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x,y}] the arguments can be any way of specifying x-y pairs.
\item[\code{object}] a \code{tukeyline} object, typically the result of
\code{line(*)}.
\item[\code{digits}] number of significant digits to use, see \code{\Link{print}}.
\item[\code{type, ...}] potentially further arguments, required by generic.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class \code{"tukeyline"}.

Methods are available for the generic functions \code{coef},
\code{residuals}, \code{fitted}, and \code{print}.\end{Value}
\begin{References}\relax
Tukey, J. W. (1977).
\emph{Exploratory Data Analysis},
Reading Massachusetts: Addison-Wesley.\end{References}
\begin{SeeAlso}\relax
\code{\Link{lm}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
library(eda)
data(cars)
plot(cars)
(z <- line(cars))
abline(coef(z))
## Tukey-Anscombe Plot :
plot(residuals(z) ~ fitted(z), main = deparse(z$call))
\end{ExampleCode}
\end{Examples}

