is_cor_matrix | R Documentation |
Checks if matrix is numeric, symmetric, has diagonal elements of one,
has only entries in [-1, 1]
, and is positive definite. Prints a warning
if a problem was found.
is_cor_matrix(m, tol = 1e-09)
m |
Matrix. |
tol |
Tolerance for checking diagonal elements. |
TRUE
if matrix is a correlation matrix, else FALSE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.