% File nlme/man/residuals.glsStruct.Rd % Part of the nlme package for R % Distributed under GPL 2 or later: see nlme/LICENCE.note \name{residuals.glsStruct} \title{Calculate glsStruct Residuals} \usage{ \method{residuals}{glsStruct}(object, glsFit, \dots) } \alias{residuals.glsStruct} \arguments{ \item{object}{an object inheriting from class \code{"\link{glsStruct}"}, representing a list of linear model components, such as \code{corStruct} and \code{"\link{varFunc}"} objects.} \item{glsFit}{an optional list with components \code{logLik} (log-likelihood), \code{beta} (coefficients), \code{sigma} (standard deviation for error term), \code{varBeta} (coefficients' covariance matrix), \code{fitted} (fitted values), and \code{residuals} (residuals). Defaults to \code{attr(object, "glsFit")}.} \item{\dots}{some methods for this generic require additional arguments. None are used in this method.} } \description{ The residuals for the linear model represented by \code{object} are extracted. } \value{ a vector with the residuals for the linear model represented by \code{object}. } \author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}} \note{ This method function is primarily used inside \code{gls} and \code{residuals.gls}. } \seealso{\code{\link{gls}}, \code{\link{glsStruct}}, \code{\link{residuals.gls}}, \code{\link{fitted.glsStruct}} } \keyword{models}