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

coefficients(tukeyline.obj)
residuals(tukeyline.obj)
fitted.values(tukeyline.obj)
print(tukeyline.obj)
\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{coefficients},
\code{residuals}, \code{fitted.values}, 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))
\end{ExampleCode}
\end{Examples}

