Learn R Programming

noisysbmGGM (version 0.1.2.3)

vecToMatrix: vecToMatrix

Description

vecToMatrix

Usage

vecToMatrix(X, p)

Value

a p by p symetric matrix whose upper triangle coefficients from left to right and from top to bottom are the entries of the vector X

Arguments

X

a vector

p

(integer) the dimension of the square matrix returned by the function be careful the length of the vector X must be equal to p(p+1)/2