residuals.gls {nlme} | R Documentation |
Extract gls Residuals
Description
The residuals for the linear model represented by object
are extracted.
Usage
## S3 method for class 'gls'
residuals(object, type, ...)
Arguments
object |
an object inheriting from class |
type |
an optional character string specifying the type of
residuals to be used. If |
... |
some methods for this generic function require additional arguments. None are used in this method. |
Value
a vector with the residuals for the linear model represented by
object
.
Author(s)
José Pinheiro and Douglas Bates bates@stat.wisc.edu
See Also
Examples
fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
correlation = corAR1(form = ~ 1 | Mare))
residuals(fm1)