dwishart {oeli} | R Documentation |
Compute density of (Inverse-) Wishart distribution
Description
This function computes the density of the (Inverse-) Wishart distribution.
Usage
dwishart(x, df, scale, log = FALSE, inv = FALSE)
Arguments
x |
A |
df |
An |
scale |
A |
log |
A |
inv |
A |
Value
A numeric
, the density value.
Examples
x <- diag(2)
df <- 4
scale <- diag(2)
dwishart(x = x, df = df, scale = scale)
dwishart(x = x, df = df, scale = scale, log = TRUE)
dwishart(x = x, df = df, scale = scale, inv = TRUE)
[Package oeli version 0.5.2 Index]