sample_covariance_matrix {oeli} | R Documentation |
Sample covariance matrix
Description
This function samples a covariance matrix from an inverse Wishart distribution.
Usage
sample_covariance_matrix(dim, df = dim, scale = diag(dim), diag = FALSE)
Arguments
dim |
An |
df |
An |
scale |
A covariance |
diag |
Set to |
Value
A covariance matrix
.
Examples
sample_covariance_matrix(dim = 3)
[Package oeli version 0.5.2 Index]