Rev 15876 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{residuals}\title{Extract Model Residuals}\usage{residuals(object, \dots)resid(object, \dots)}\alias{residuals}\alias{resid}\alias{residuals.default}\arguments{\item{object}{an object for which the extraction of model residuals ismeaningful.}\item{\dots}{other arguments.}}\value{Residuals extracted from the object \code{object}.}\description{\code{residuals} is a generic function which extracts model residualsfrom objects returned by modeling functions.The abbreviated form \code{resid} is an alias for \code{residuals}.It is intended to encourage users to access object components throughan accessor function rather than by directly referencing an objectslot.All object classes which are returned by model fitting functionsshould provide a \code{residuals} method. (Note that the method is`residuals' and not `resid'.)Methods can make use of \code{\link{naresid}} methods to compensatefor the omission of missing values. The default method does.}\seealso{\code{\link{coefficients}}, \code{\link{fitted.values}},\code{\link{glm}}, \code{\link{lm}}.}\keyword{models}\keyword{regression}