sim_iw | R Documentation |
This function samples one matrix IW matrix.
sim_iw(mat_scale, shape)
mat_scale |
Scale matrix |
shape |
Shape |
Consider \Sigma \sim IW(\Psi, \nu)
.
Upper triangular Bartlett decomposition: k x k matrix Q = [q_{ij}]
upper triangular with
q_{ii}^2 \chi_{\nu - i + 1}^2
q_{ij} \sim N(0, 1)
with i < j (upper triangular)
Lower triangular Cholesky decomposition: \Psi = L L^T
A = L (Q^{-1})^T
\Sigma = A A^T \sim IW(\Psi, \nu)
One k x k matrix following IW distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.