getCovariate.varFunc.Rd
This method function extracts the covariate(s) associated with the
variance function represented by object
, if any is present.
# S3 method for class 'varFunc'
getCovariate(object, form, data)
if object
has a covariate
attribute, its value is
returned; else NULL
is returned.
covariate<-.varFunc
vf1 <- varPower(1.1, form = ~age)
covariate(vf1) <- Orthodont[["age"]]
getCovariate(vf1)
#> [1] 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8
#> [26] 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10
#> [51] 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12
#> [76] 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14 8 10 12 14
#> [101] 8 10 12 14 8 10 12 14