residuals.lmList {nlme} | R Documentation |
The residuals are extracted from each lm
component of
object
and arranged into a list with as many components as
object
, or combined into a single vector.
## S3 method for class 'lmList' residuals(object, type, subset, asList, ...)
object |
an object inheriting from class |
subset |
an optional character or integer vector naming the
|
type |
an optional character string specifying the type of
residuals to be extracted. Options include |
asList |
an optional logical value. If |
... |
some methods for this generic require additional arguments. None are used in this method. |
a list with components given by the residuals of each lm
component of object
, or a vector with the residuals for all
lm
components of object
.
Jose Pinheiro and Douglas Bates bates@stat.wisc.edu
fm1 <- lmList(distance ~ age | Subject, Orthodont) residuals(fm1)