nlme (version 3.1-1)

getResponse.lme: 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)

Arguments

object
an object inheriting from class lme, representing a fitted linear mixed-effects model.

Value

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

See Also

lme

Examples

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

Run the code above in your browser using DataLab