Extract gls Object Formula

DESCRIPTION:

This method function extracts the linear model formula associated with object.

USAGE:

formula(object) 

REQUIRED ARGUMENTS:

object
an object inheriting from class gls, representing a generalized least squares fitted linear model.

VALUE:

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

SEE ALSO:

EXAMPLES:

fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary, 
           correlation = corAR1(form = ~ 1 | Mare)) 
formula(fm1)