Skip to contents

Reconstruct the symmetric matrix from upper triangular vector

Usage

upper_tri_to_matrix(upper_tri_values, variable_names = NULL, diagl = 1)

Arguments

upper_tri_values

a numeric vector of the upper triangle of the matrix

variable_names

row&column names

diagl

the diagnoal elemenet, a number of a numerci vector

Value

a symmetric matrix