subSymm: Substitute in a symmetric matrix

View source: R/subSymm.R

subSymmR Documentation

Substitute in a symmetric matrix

Description

Helper to create models, which substitute in a symmetric matrix for a value.

Usage

subSymm(m, x, y, val)

Arguments

m

The symmetric matrix

x

Row position

y

Column position

val

Value to insert in the given position

Value

The symmetric matrix with the value inserted in the right positions

See Also

symm(), correct(), weight_design()

Examples

m <- matrix(0, ncol = 3, nrow = 3)
subSymm(m, 1, 2, 1)

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