nlme (version 3.1-1)

formula.lme: Extract lme Object Formula

Description

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

Usage

formula(object)

Arguments

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

Value

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

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