is.cor: Is it a correlation matrix?

View source: R/is.cor.R

is.corR Documentation

Is it a correlation 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. An absolute value less than this is considered as zero.

Details

A diagonal component should not be necessarily 1. But it should be close to 1.

Value

TRUE or FALSE

Author(s)

Kyun-Seop Bae k@acr.kr


sasLM documentation built on Oct. 2, 2024, 9:06 a.m.