diwishart.Rd
Implemented in R (slow).
diwishart(X, df, Sigma, log = FALSE, is.chol = FALSE)
X | observation |
---|---|
df | degrees of freedom |
Sigma | scale matrix |
log | if TRUE, return the log-density |
is.chol | if TRUE, Sigma and X are the upper Cholesky factors of Sigma and X |
the density in X
Uses (Press 2012) parametrization.
$$X \sim IW(\nu, S)$$ with \(S\) is a \(p \times p\) matrix, \(\nu > 2p\) (the degrees of freedom).
Then: $$E[X] = \frac{S}{\nu - 2(p + 1)}$$
diwishart_inverse()
, dwishart()
Other R functions:
diwishart_inverse_R()
,
dwishart()
,
riwish_Press()
Other statistical functions:
diwishart_inverse_R()
,
diwishart_inverse()
,
dmvnorm()
,
dwishart()
,
riwish_Press()
,
rmvnorm()
,
rwish()
Other Wishart functions:
diwishart_inverse_R()
,
diwishart_inverse()
,
dwishart()
,
get_minimum_nw_IW()
,
riwish_Press()
,
rwish()