Learn R Programming

CovCorTest (version 1.1.0)

dvech: Diagonal vectorization

Description

Diagonal vectorization of the upper triangular matrix

Usage

dvech(X, a, d, p, inc_diag)

Value

vector

Arguments

X

quadratic matrix which should be diagonalized

a

vector containing the indices which belong to the diagonal of the matrix

d

dimension of the matrix which should be vectorized

p

dimension of the vectorized matrix

inc_diag

TRUE or FALSE: should the diagonal be included?