When using an <xp_xtra
> object, this function will add a column to the output
where CV% for each diagonal element of omega is calculated. This CV% is with
respect to the resulting structural parameter, so unless the default log-normal
association is applicable update with add_prm_association
.
For log-normal, users may prefer to use the first-order CV% (\(\sqrt{\omega^2}\))
instead of the exact. In such case, xpdb <- set_option(xpdb, cvtype="sqrt")
will
get that preferred form.
If a single omega parameter is associated with multiple fixed effect parameters,
the cv
column will be a list. For the omega
row associated with multiple
fixed effect parameters, there will be multiple CV values. This will be the case
even if the transformation is log-normal and therefore scale-invariant, given
the need for generality.
Note the approach used to calculate CV% assumes an untransformed scale for the
fitted parameter value (unrelated to transform
=TRUE). That means, for example,
that for a logit-normal fitted parameter value, it is expected the value will be
something constrained between 0 and 1, not the unbounded, continuous transformed value.
The function <mutate_prm
> is intended to help where that might be an issue.