Rev 40779 | Go to most recent revision | 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\samp{residuals} and not \samp{resid}.)Methods can make use of \code{\link{naresid}} methods to compensatefor the omission of missing values. The default method does.}\references{Chambers, J. M. and Hastie, T. J. (1992)\emph{Statistical Models in S}.Wadsworth \& Brooks/Cole.}\seealso{\code{\link{coefficients}}, \code{\link{fitted.values}},\code{\link{glm}}, \code{\link{lm}}.}\keyword{models}\keyword{regression}