powered by
diwish returns the density for the inverse Wishart(nu,S) evaluated at Sigma.
diwish
diwish(Sigma, nu, S, logscale=FALSE)
Inverse Wishart(nu,S) density evaluated at Sigma
Positive-definite matrix
Degrees of freedom of the inverse Wishart
Scale matrix of the inverse Wishart
If logscale==TRUE the log-density is returned
logscale==TRUE
David Rossell
dpostNIW for the Normal-IW posterior density
dpostNIW
library(mombf) Sigma= matrix(c(2,1,1,2),nrow=2) diwish(Sigma,nu=4,S=diag(2))
Run the code above in your browser using DataLab