nlme (version 3.1-86)

formula.pdBlocked: Extract pdBlocked Formula

Description

The formula attributes of the pdMat elements of x are extracted and returned as a list, in case asList=TRUE, or converted to a single one-sided formula when asList=FALSE. If the pdMat elements do not have a formula attribute, a NULL value is returned.

Usage

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

Arguments

Value

a list of one-sided formulas, or a single one-sided formula, or NULL.

See Also

pdBlocked, pdMat

Examples

Run this code
pd1 <- pdBlocked(list(~ age, ~ Sex - 1))
formula(pd1)
formula(pd1, asList = TRUE)

Run the code above in your browser using DataLab