vech: Vectorize a symmetric matrix

vechR Documentation

Vectorize a symmetric matrix

Description

vech takes the upper diagonal from a symmetric matrix and vectorizes it.

Usage

vech(x)

Arguments

x

a symmetric matrix.

Value

A vector with the components of the upper diagonal from the matrix, listed by row.

Note

For internal use.

Author(s)

Clecio Ferreira, Diego Gallardo and Camila Zeller.

Examples

A<-matrix(c(1,2,2,5),nrow=2)
##vectorized A matrix
B<-vech(A)
B
##reconstitute matrix A using B
xpnd(B,2)

skewMLRM documentation built on April 12, 2025, 1:23 a.m.

Related to vech in skewMLRM...