formula.lme {nlme}R Documentation

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.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

lme

Examples

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