Creates a diagonal n x n
variance matrix with user-defined skewness
based on a gamma or inverse gamma distribution.
Arguments
- n
A scalar defining the dimensions of the variance matrix.
- shape
A scalar defining the shape of the distribution.
- scale
A scalar defining the scale of the distribution.
- inverse
When
TRUE
(default isFALSE
), the variances are sampled from the inverse gamma distribution instead of the gamma distribution.- mean.var
An optional scalar defining the mean variance. . When supplied, the variances are scaled to achieve the defined mean.