nlme (version 3.1-86)

getCovariate.varFunc: Extract varFunc Covariate

Description

This method function extracts the covariate(s) associated with the variance function represented by object, if any is present.

Usage

## S3 method for class 'varFunc':
getCovariate(object, form, data)

Arguments

Value

if object has a covariate attribute, its value is returned; else NULL is returned.

See Also

covariate<-.varFunc

Examples

Run this code
vf1 <- varPower(1.1, form = ~age)
covariate(vf1) <- Orthodont[["age"]]
getCovariate(vf1)

Run the code above in your browser using DataCamp Workspace