\Header{coefficients}{Extract Model Coefficents}
\alias{coef}{coefficients}
\alias{coef.default}{coefficients}
\alias{coef.lm}{coefficients}
\alias{coef.glm}{coefficients}
\alias{coef.aov}{coefficients}
\alias{coef.listof}{coefficients}
\keyword{regression}{coefficients}
\keyword{models}{coefficients}
\begin{Usage}
\begin{verbatim}
coef(x, ...)
coefficients(x, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] an object for which the extraction of model coefficients is
meaningful.
\item[\texttt{...}] other arguments.
\end{ldescription}
\end{Arguments}
\begin{Description}
\texttt{coef} is a generic function which extracts model coefficents
from objects returned by modeling functions.  \texttt{coefficients} is
an \emph{alias} (\texttt{\Link{.Alias}}) for it.\end{Description}
\begin{Details}
All object classes which are returned by model fitting functions
should provide a \texttt{coef} method.  (Note that the method is \texttt{coef} and
not \texttt{coefficients}.)\end{Details}
\begin{Value}
Coefficients extracted from the model object \texttt{x}.\end{Value}
\begin{SeeAlso}
\texttt{\Link{fitted.values}} and \texttt{\Link{residuals}} for related methods;
\texttt{\Link{glm}}, \texttt{\Link{lm}} for model fitting.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- 1:5; coef(lm(c(1:3,7,6) ~ x))
\end{ExampleCode}
\end{Examples}

