nlme (version 3.1-39)

formula.modelStruct: Extract modelStruct Object Formula

Description

This method function extracts a formula from each of the components of x, returning a list of formulas.

Usage

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

Arguments

x
an object inheriting from class modelStruct, representing a list of model components, such as corStruct and varFunc objects.
...
some methods for this generic require additional arguments. None are used in this method.

Value

  • a list with the formulas of each component of x.

See Also

formula

Examples

Run this code
lms1 <- lmeStruct(reStruct = reStruct(pdDiag(diag(2), ~age)),
   corStruct = corAR1(0.3))
formula(lms1)

Run the code above in your browser using DataLab