diwish {mombf} | R Documentation |
Density for Inverse Wishart distribution
Description
diwish
returns the density for the inverse Wishart(nu,S)
evaluated at Sigma.
Usage
diwish(Sigma, nu, S, logscale=FALSE)
Arguments
Sigma |
Positive-definite matrix |
nu |
Degrees of freedom of the inverse Wishart |
S |
Scale matrix of the inverse Wishart |
logscale |
If |
Value
Inverse Wishart(nu,S) density evaluated at Sigma
Author(s)
David Rossell
See Also
dpostNIW
for the Normal-IW posterior density
Examples
library(mombf)
Sigma= matrix(c(2,1,1,2),nrow=2)
diwish(Sigma,nu=4,S=diag(2))
[Package mombf version 3.5.4 Index]