riwish: Generate Inverse Wishart Distribution

Description Usage Arguments Value Author(s) References

Description

Generates an inverse Wishart distribution for a variance of a random effect. The functions requires the specification of degrees of freedom, scale matrix, and precision for each random effect.

Usage

1
riwish(s, df, prec)

Arguments

s

scale matrix for inverse Wishart distribution

df

degrees of freedom

prec

presision matrix: the mean of riwish is proportional to prec

Value

The variance of the random effect can be drawn from the returned inverse Wishart distribution.

Author(s)

written by Leonid Gibiansky; modified by Tim Bergsma.

References

http://metrumrg.googlecode.com


metrumrg documentation built on May 2, 2019, 5:55 p.m.