sym2vec {parcor}R Documentation

Transform symmetric matrix to vector

Description

This function transforms the upper triangle (without diagonal) of a matrix A into a vector.

Usage

sym2vec(A)

Arguments

A quadratic matrix of size p x p

Details

The entries of the matrix A are stacked line-by-line.

Value

vector of length p(p-1)/2

Note

This is an internal function.

Author(s)

Nicole Kraemer

Examples

p<-7
A<-matrix(rnorm(p*p),ncol=p)
v<-sym2vec(A)

[Package parcor version 0.1 Index]