\Header{coefficients}{Extract Model Coefficients}
\alias{coef}{coefficients}
\methalias{coef.aov}{coefficients}
\methalias{coef.default}{coefficients}
\methalias{coef.glm}{coefficients}
\methalias{coef.listof}{coefficients}
\methalias{coef.lm}{coefficients}
\keyword{regression}{coefficients}
\keyword{models}{coefficients}
\begin{Description}\relax
\code{coef} is a generic function which extracts model coefficients
from objects returned by modeling functions.  \code{coefficients} is
an \emph{alias} for it.\end{Description}
\begin{Usage}
\begin{verbatim}
coef(object, ...)
coefficients(object, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object for which the extraction of model coefficients is
meaningful.
\item[\code{...}] other arguments.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
All object classes which are returned by model fitting functions
should provide a \code{coef} method.  (Note that the method is
\code{coef} and not \code{coefficients}.)\end{Details}
\begin{Value}
Coefficients extracted from the model object \code{object}.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{fitted.values}} and \code{\Link{residuals}} for related methods;
\code{\Link{glm}}, \code{\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}

