rwishart {oeli} | R Documentation |
Draw from Wishart distribution
Description
This function draws from a Wishart or Inverse-Wishart distribution.
Usage
rwishart(df, scale, inv = FALSE)
Arguments
df |
An |
scale |
A |
inv |
A |
Value
A matrix
, the random draw.
Examples
df <- 4
scale <- diag(2)
rwishart(df = df, scale = scale)
rwishart(df = df, scale = scale, inv = TRUE)
[Package oeli version 0.5.2 Index]