qincolmult: Convert multiple symmetric matrices into vectors

Description Usage Arguments Value See Also Examples

Description

Calling qincolmult() on an array of symmetric matrices all with dimension rxr converts these matrices into an array of vectors with length r(r+1)/2. This function is used to handle the MCMC sampling output from multivariate finite mixture models. To save storage the symmetric variance-covariance matrices of multivariate mixtures are stored in vector form. If the covariance matrices are needed for calculations the functions qinmatr() and qinmatrmult() helps to restore these matrices from the storage vectors.

Usage

1

Arguments

a

An array of symmetric matrices or dimension rxrxK.

Value

A matrix of dimension r(r+1)/2xK.

See Also

Examples

1
2
3
4
# Convert a matrix of vectors
matrices <- qinmatrmult(matrix(rnorm(36), nrow = 6))
# Convert these matrices back into vectors.
qincolmult(matrices) 

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.