powered by
Random generation from the Wishart distribution.
rwish(v, S)
rwish generates one random draw from the distribution.
rwish
Degrees of freedom (scalar).
Inverse scale matrix \((p \times p)\).
The mean of a Wishart random variable with v degrees of freedom and inverse scale matrix S is \(vS\).
v
S
if (FALSE) { draw <- rwish(3, matrix(c(1,.3,.3,1),2,2)) }
Run the code above in your browser using DataLab