nlme (version 3.1-39)

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

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.

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