Rev 30154 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{coef}\title{Extract Model Coefficients}\usage{coef(object, \dots)coefficients(object, \dots)}\alias{coef}\alias{coefficients}%\alias{coef.default}%\alias{coef.lm}%\alias{coef.glm}%\alias{coef.aov}%\alias{coef.listof}\arguments{\item{object}{an object for which the extraction of model coefficients ismeaningful.}\item{\dots}{other arguments.}}\value{Coefficients extracted from the model object \code{object}.}\description{\code{coef} is a generic function which extracts model coefficientsfrom objects returned by modeling functions. \code{coefficients} isan \emph{alias} for it.}\details{All object classes which are returned by model fitting functionsshould provide a \code{coef} method or use the default one.(Note that the method is for \code{coef} and not \code{coefficients}.)Class \code{"aov"} has a \code{coef} method that does not reportaliased coefficients (see \code{\link{alias}}).}\seealso{\code{\link{fitted.values}} and \code{\link{residuals}} for related methods;\code{\link{glm}}, \code{\link{lm}} for model fitting.}\references{Chambers, J. M. and Hastie, T. J. (1992)\emph{Statistical Models in S}.Wadsworth \& Brooks/Cole.}\examples{x <- 1:5; coef(lm(c(1:3,7,6) ~ x))}\keyword{regression}\keyword{models}