Learn R Programming

MTS (version 1.2.1)

VechM: Matrix constructed from output of the Vech Command. In other words, restore the original symmetric matrix from its half-stacking vector.

Description

Restores the symmetric matrix from the Vech command

Usage

VechM(vec)

Arguments

vec

A vector representing the half-stacking of a symmetric matrix

Value

A symmetric matrix

Details

This command re-construct a symmetric matrix from output of the Vech command

References

Tsay (2014, Appendix A)

See Also

Vech

Examples

Run this code
# NOT RUN {
v1=c(2,1,3)
m1=VechM(v1)
m1
# }

Run the code above in your browser using DataLab