Learn R Programming

nlme (version 3.1-38)

formula.gls: Extract gls Object Formula

Description

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

Usage

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

Arguments

x
an object inheriting from class gls, representing a generalized least squares fitted linear model.
...
some methods for this generic require additional arguments. None are used in this method.

Value

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

See Also

gls

Examples

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

Run the code above in your browser using DataLab