\HeaderA{line}{Robust Line Fitting}{line}
\aliasA{residuals.tukeyline}{line}{residuals.tukeyline}
\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)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x,y}] the arguments can be any way of specifying x-y pairs.
\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{\LinkA{lm}{lm}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
plot(cars)
(z <- line(cars))
abline(coef(z))
## Tukey-Anscombe Plot :
plot(residuals(z) ~ fitted(z), main = deparse(z$call))
\end{ExampleCode}
\end{Examples}

