\Header{line}{Robust Line Fitting}
\alias{coefficients.tukeyline}{line}
\alias{residuals.tukeyline}{line}
\alias{fitted.values.tukeyline}{line}
\alias{print.tukeyline}{line}
\keyword{robust}{line}
\keyword{regression}{line}
\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[\texttt{x,y}] the arguments can be any way of specifying x-y pairs.
\end{ldescription}
\end{Arguments}
\begin{Description}
This function fits a line robustly as recommended in John Tukey's book
\emph{Exploratory Data Analysis}.\end{Description}
\begin{Value}
An object of class \texttt{tukeyline}.

Methods are available for the generic functions \texttt{coefficients},
\texttt{residuals}, \texttt{fitted.values}, and \texttt{print}.\end{Value}
\begin{References}
Tukey, J. W. (1977).
\emph{Exploratory Data Analysis},
Reading Massachusetts: Addison-Wesley.\end{References}
\begin{SeeAlso}
\texttt{\Link{lm}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
library(eda)
data(cars)
plot(cars)
z <- line(cars)
abline(coef(z))
\end{ExampleCode}
\end{Examples}

