Learn R Programming

LOCUS (version 1.0)

Ltrinv: Inverse function of Ltrans to map back a vector into a symmetric matrix.

Description

This function is the inverse function of Ltrans, which is to map a vector back to a symmetric matrix.

Usage

Ltrinv(x, V, d = TRUE)

Value

A symmetric matrix whose upper triangle part is x.

Arguments

x

A vector to convert to a matrix, which is of length p.

V

Dimension of the matrix which x is converted to.

d

Whether diagonal is kept in x or not.