Description Usage Arguments Details Value Examples
Simulate one draw from the Wishart distribution
1 | draw_wishart(v, S)
|
v |
An integer, the degrees of freedom of the distribution. |
S |
A numeric matrix, the scale matrix of the distribution. |
Employs the Bartlett Decomposition (Smith & Hocking 1972). Output exactly matches that of rwish from the MCMCpack package if the same random seed is used.
A column vector containing the draw.
1 2 | M <- matrix(c(1, 0.5, 0.5, 1), 2, 2)
draw_wishart(10, M)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.