symm: Create symmetric matrix

View source: R/subSymm.R

symmR Documentation

Create symmetric matrix

Description

Create symmetric matrix

Usage

symm(m, data)

Arguments

m

Square numeric matrix.

data

Numeric values of the upper triangular side of the matrix

Value

A square symmetric matrix.

Note

After the upper case there can be other values that are assumed to be in the diagonal.

See Also

subSymm(), correct()

Examples

m <- matrix(0, ncol = 5, nrow = 5)
symm(m, c(0, 1, 1, 1, 0, 0.5, 0.2, 0.3, 0.7, 0.1))

llrs/inteRmodel documentation built on April 1, 2022, 4:04 p.m.