powered by
This method function extracts the covariate(s) associated with the variance function represented by object, if any is present.
object
# S3 method for varFunc getCovariate(object, form, data)
if object has a covariate attribute, its value is returned; else NULL is returned.
covariate
NULL
an object inheriting from class varFunc, representing a variance function structure.
varFunc
an optional formula specifying the covariate to be evaluated in object. Defaults to formula(object).
formula(object)
some methods for this generic require a data object. Not used in this method.
data
José Pinheiro and Douglas Bates bates@stat.wisc.edu
covariate<-.varFunc
vf1 <- varPower(1.1, form = ~age) covariate(vf1) <- Orthodont[["age"]] getCovariate(vf1)
Run the code above in your browser using DataLab