Description Usage Arguments Value
View source: R/simulate_correlation_matrices.R
will call rWishart_ARMA. before returning the array, will apply cov2cor on each matrix.
1 2 3 4 5 6 7 8 9 | create_correlation_matrices(
n,
df,
Sigma,
AR = NULL,
MA = NULL,
random_effect = NULL,
ncores = 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. |
AR |
a vector representing the Auto-regressive part of the multivariate ARMA process |
MA |
a vector representing the Moving-average part of the multivariate ARMA process |
random_effect |
generate a random effect for each matrix with generate_random_effect_sigma |
ncores |
number of cores to use, if parallelized. |
an array of correlation matrices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.