Learn R Programming

sasLM (version 0.9.2)

is.cor: Is it a corrleation matrix?

Description

Testing if the input matrix is a correlation matrix or not

Usage

is.cor(m, eps=1e-16)

Value

TRUE or FALSE

Arguments

m

a presumed correlation matrix

eps

epsilon value. Absolute value less than this is considered as zero.

Author

Kyun-Seop Bae k@acr.kr

Details

Diagonal component should not be necessarily 1. But it should be close to 1.