getCovariate.varFunc: Extract varFunc Covariate

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

Arguments

object

an object inheriting from class varFunc, representing a variance function structure.

form

an optional formula specifying the covariate to be evaluated in object. Defaults to formula(object).

data

some methods for this generic require a data object. Not used in this method.

Value

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

Author(s)

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See Also

covariate<-.varFunc

Examples

1
2
3
vf1 <- varPower(1.1, form = ~age)
covariate(vf1) <- Orthodont[["age"]]
getCovariate(vf1)


Search within the nlme package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.