varPower
class,
representing a power variance function structure. Letting
$v$ denote the variance covariate and $\sigma^2(v)$
denote the variance function evaluated at $v$, the power
variance function is defined as $\sigma^2(v) = |v|^{2\theta}$, where $\theta$ is the variance
function coefficient. When a grouping factor is present, a different
$\theta$ is used for each factor level.varPower(value, form, fixed)
Value
must have
length one, unless a grouping factor is specified in form
.
If value
has length greater than ~ v
, or
~ v | g
, specifying a variance covariate v
and,
optionally, a grouping factor g
for the coefficients. The
variance covariate must evaluate toform
, fixed
must havarPower
object representing a power variance function
structure, also inheriting from class varFunc
.varWeights.varFunc
, coef.varPower
vf1 <- varPower(0.2, form = ~age|Sex)
Run the code above in your browser using DataLab