\Header{coef}{Extract Model Coefficients}
\methalias{coef.aov}{coef}
\methalias{coef.default}{coef}
\methalias{coef.glm}{coef}
\methalias{coef.listof}{coef}
\methalias{coef.lm}{coef}
\alias{coefficients}{coef}
\keyword{regression}{coef}
\keyword{models}{coef}
\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{References}\relax
Chambers, J. M. and Hastie, T. J. (1992)
\emph{Statistical Models in S}.
Wadsworth \& Brooks/Cole.\end{References}
\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}

