create_correlation_matrices: Simulate a Sample of Correlation Matrices

Description Usage Arguments Value

View source: R/simulate_correlation_matrices.R

Description

will call rWishart_ARMA. before returning the array, will apply cov2cor on each matrix.

Usage

1
2
3
4
5
6
7
8
9
create_correlation_matrices(
  n,
  df,
  Sigma,
  AR = NULL,
  MA = NULL,
  random_effect = NULL,
  ncores = 1
)

Arguments

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.

Value

an array of correlation matrices.


itamarfaran/corrpops documentation built on Dec. 20, 2021, 8:02 p.m.