Rev 64657 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/stats/man/residuals.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2013 R Core Team% Distributed under GPL 2 or later\name{residuals}\alias{residuals}\alias{resid}%\alias{residuals.default}\title{Extract Model Residuals}\usage{residuals(object, \dots)resid(object, \dots)}\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 isfor \samp{residuals} and not \samp{resid}.)Methods can make use of \code{\link{naresid}} methods to compensatefor the omission of missing values. The default, \code{\link{nls}} and\code{\link{smooth.spline}} methods do.}\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}}.\link{influence.measures} for standardized (\code{\link{rstandard}})and studentized (\code{\link{rstudent}}) residuals.}\keyword{models}\keyword{regression}