Learn R Programming

nlme (version 3.1-31)

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

## S3 method for class 'lme':
getResponse(object, form)

Arguments

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