samplecovs: Generate Sample Covariances of 2 groups

Description Usage Arguments Value Examples

View source: R/auxiliary.R

Description

For visualization purpose, samplecovs generates a 3d array of stacked sample covariances where - in 3rd dimension, the first half are sample covariances of samples generated independently from normal distribution with identity covariance, where the latter half consists of samples covariances from dense random population covariance.

Usage

1
samplecovs(ncopy, size)

Arguments

ncopy

the total number of sample covariances to be generated.

size

dimension p.

Value

a (p\times p\times ncopy) array of strictly positive definite sample covariances.

Examples

1
2
## generate total of 20 samples covariances of size 5-by-5.
samples <- samplecovs(20,5)

CovTools documentation built on Aug. 14, 2021, 1:08 a.m.