rwish {MCMCpack} | R Documentation |
This function generates a random draw from the Wishart distribution.
rwish(v, S)
v |
Wishart degrees of freedom (scalar). |
S |
Wishart scale matrix (p x p). |
A (p x p) matrix.
A <- rwish(3, matrix(c(1,.3,.3,1),2,2))