rwish | R Documentation |
Random generation from the Wishart distribution.
rwish(v, S)
v |
degrees of freedom (scalar) |
S |
inverse scale matrix |
The mean of a Wishart random variable with v
degrees of freedom
and inverse scale matrix S
is vS
.
Returns generates one random draw from the distribution which is a
matrix
with the same dimensions as S
This was copied from the MCMCpack package
draw <- rwish(3, matrix(c(1,.3,.3,1),2,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.