Learn R Programming

RSGHB (version 1.0.2)

vech: Vectorizes a symmetric matrix

Description

Turns a symmetrix matrix into a matrix to save on memory space. The symmetric matrix is vectorizes by retaining the lower triangular portion of the the matrix.

Usage

vech(mat)

Arguments

mat
A symmetric matrix to be vectorized.