Description Usage Arguments Value Wishart parametrization References See Also
Same code as rWishart
function in package stats.
1 |
v |
dof |
S |
the scale matrix (pxp) |
is_chol |
if TRUE, S is the upper Cholesky factor of S |
return_chol |
if TRUE, the upper Cholesky factor is returned |
a single random variate from W(v, S)
Uses \insertCitePress2012Applied,Anderson2003introductionbayessource parametrization.
X ~ W(v, S)
with S is a pxp matrix, v >= p (the degrees of freedom).
Then:
E[X] = v * S
Other C++ functions:
chol2inv()
,
diwishart_inverse()
,
dmvnorm()
,
inv_Cholesky_from_Cholesky()
,
inv_sympd_tol()
,
inv_triangular()
,
isCholeskyOn()
,
ldet_from_Cholesky()
,
logCummeanExp()
,
logCumsumExp()
,
logSumExpMean()
,
logSumExp()
,
marginalLikelihood_internal()
,
rmvnorm()
Other statistical functions:
diwishart_inverse_R()
,
diwishart_inverse()
,
diwishart()
,
dmvnorm()
,
dwishart()
,
riwish_Press()
,
rmvnorm()
Other Wishart functions:
diwishart_inverse_R()
,
diwishart_inverse()
,
diwishart()
,
dwishart()
,
get_minimum_nw_IW()
,
riwish_Press()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.