Extract lme Object Formula

DESCRIPTION:

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

USAGE:

formula(object) 

REQUIRED 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:

EXAMPLES:

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