xpnd: Reconstitute a symmetric matrix from a vector.

Description Usage Arguments Value Note Author(s) Examples

Description

xpnd reconstitutes a symmetric matrix from a vector obtained with the vech function.

Usage

1
xpnd(x, nrow = NULL)

Arguments

x

vector with the components of the upper diagonal of the matrix

nrow

dimension of the matrix to be reconstitute.

Value

A symmetric matrix.

Note

For internal use.

Author(s)

Clecio Ferreira, Diego Gallardo and Camila Zeller.

Examples

1
2
3
4
5
6
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 Nov. 24, 2021, 9:07 a.m.

Related to xpnd in skewMLRM...