nlme (version 3.1-39)

formula.lme: Extract lme Object Formula

Description

This method function extracts the fixed effects model formula associated with x.

Usage

## S3 method for class 'lme':
formula(x, \dots)

Arguments

x
an object inheriting from class lme, representing a fitted linear mixed-effects model.
...
some methods for this generic require additional arguments. None are used in this method.

Value

  • a two-sided linear formula specifying the fixed effects model used to obtain x.

See Also

lme

Examples

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

Run the code above in your browser using DataLab