getResponse.lme {nlme}R Documentation

Extract lme Object Response

Description

This method function extracts the response variable used in fitting the linear mixed-effects model corresponding to object.

Usage

getResponse(object, form)

Arguments

object an object inheriting from class lme, representing a fitted linear mixed-effects model.
form an optional two-sided formula. Defaults to formula(object).

Value

a vector with the response variable corresponding to the linear mixed-effects model represented by object.

Author(s)

Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates bates@stat.wisc.edu

See Also

lme

Examples

data(Orthodont)
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
getResponse(fm1)

[Package Contents]