num.matrices: Number of matrices to be generated. If greater than 1, a list is returned.
min.var: Lower value for random variance in covariance matrices
max.var: Upper value for random variance in covariance matrices
variance: Variance vector. If present will be used in all matrices
ke: Parameter for correlation matrix generation. Involves check for positive definiteness
LKJ: logical. Use LKJ distribution for generating correlation matrices.
shape: Shape parameter for the LKJ distribution. Values closer to zero leads to a more uniform distribution correlations. Higher values lead to correlations closer to zero.
Returns
Returns either a single matrix, or a list of matrices of equal dimension
Examples
# single 10x10 correlation matrixRandomMatrix(10)# single 5x5 covariance matrix, variances between 3 and 4RandomMatrix(5,1,3,4)# two 3x3 covariance matrices, with shared variancesRandomMatrix(3,2, variance= c(3,4,5))# large 10x10 matrix list, with wide range of variancesRandomMatrix(10,100,1,300)