symat: Generate symmetric matrix

Description Usage Arguments Value

View source: R/testfunctions_covariates.R

Description

Function takes in a vector of values, and constructs a symmetric matrix from it. Diagonals must be included. The length of the vector must also be consistent with the number of "unique" entries in the symmetric matrix. Note that entries are filled in along the columns (i.e. equivalent to byrow = FALSE).

Usage

1
symat(values)

Arguments

values

vector, the values that enter into the symmetric matrix. Dimensions will be determined automatically.

Value

matrix.


ivmte documentation built on Sept. 17, 2021, 5:06 p.m.