getResponse.gls {nlme} | R Documentation |
This method function extracts the response variable used in fitting
the linear model corresponding to object
.
getResponse(object)
object |
an object inheriting from class gls , representing
a generalized least squares fitted linear model. |
a vector with the response variable corresponding to the linear
model represented by object
.
Jose Pinheiro and Douglas Bates
library(nlme) data(Ovary) fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary, correlation = corAR1(form = ~ 1 | Mare)) getResponse(fm1)