Learn R Programming

gmat (version 0.2.1)

vectorize: Vectorize a sample of covariance/correlation matrices

Description

Vectorize a sample of covariance/correlation matrices

Usage

vectorize(sample)

Arguments

sample

Array, the p x p x N sample to vectorize.

Value

A p*(p - 1)/2 x N matrix containing the vectorized sample.

Details

Note that if the sample is of covariance matrices, as returned by port() and diagdom(), the diagonal is omitted from the vectorization process.