\Header{residuals.glsStruct}{Calculate glsStruct Residuals}
\keyword{models}{residuals.glsStruct}
\begin{Description}\relax
The residuals for the linear model represented by \code{object}
are extracted.\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'glsStruct':
residuals(object, glsFit, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object inheriting from class \code{glsStruct},
representing a list of linear model components, such as
\code{corStruct} and \code{varFunc} objects.
\item[\code{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[\code{...}] some methods for this generic require additional
arguments.  None are used in this method.
\end{ldescription}
\end{Arguments}
\begin{Value}
a vector with the residuals for the linear model represented by
\code{object}.\end{Value}
\begin{Note}\relax
This method function is primarily used inside \code{gls} and 
\code{residuals.gls}.\end{Note}
\begin{Author}\relax
Jose Pinheiro \email{Jose.Pinheiro@pharma.novartis.com} and Douglas Bates \email{bates@stat.wisc.edu}\end{Author}
\begin{SeeAlso}\relax
\code{\Link{gls}}, \code{\Link{residuals.gls}},
\code{\Link{fitted.glsStruct}}\end{SeeAlso}

