Learn R Programming

sasLM (version 0.6.0)

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)

Arguments

m

a presumed correlation matrix

eps

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

Value

TRUE or FALSE

Details

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