diwish: Density for Inverse Wishart distribution

View source: R/distribs.R

diwishR 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 logscale==TRUE the log-density is returned

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))

mombf documentation built on May 29, 2024, 11:01 a.m.