is.CompSym: Checks if a matrix is Compound Symmetric.

Description Usage Arguments Value Examples

View source: R/r2_sgv_est_Function.R

Description

Checks if a matrix is Compound Symmetric.

Usage

1
is.CompSym(mat, tol = 1e-05)

Arguments

mat

The matrix to be tested.

tol

a number indicating the smallest acceptable difference between off diagonal values.

Value

True if the matrix is compound symmetric.

Examples

1
2
3
gcmat <- matrix(c(1,0.2,0.1,0.2,1,0.3,0.1,0.3,1), nrow = 3)
csmat <- matrix(c(1,0.2,0.2,0.2,1,0.2,0.2,0.2,1), nrow = 3)
is.CompSym(csmat)

r2glmm documentation built on May 1, 2019, 9:09 p.m.