Description Usage Arguments Value See Also
View source: R/rwishart_extension.R
Generate n random matrices, distributed according to the (possibly degenerate) Wishart distribution with parameters Sigma and df, W_p(Sigma, df). with df possibly lower than p, Sigma can be semi positive definite and with a random effect. if df >= p, random_effect is null and Sigma is positive definite, will call rWishart.
1 |
n |
integer sample size. |
df |
numeric parameter, “degrees of freedom”. can be lower than the dimension of Sigma |
Sigma |
semi positive definite (p * p) “scale” matrix, the matrix parameter of the distribution. |
random_effect |
generate a random effect for each matrix with generate_random_effect_sigma |
a numeric array, of dimension p * p * n, where each matrix is semi positive definite covariance matrix, a realization of the (possibly degenerate) Wishart distribution W_p(Sigma, df), where Sigma is possibly an RV itself.
rWishart
Other rWishart2:
generate_random_effect_sigma()
,
rWishart_ARMA()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.