is_cor_matrix: Check if matrix is a correlation matrix
Description
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.
Usage
is_cor_matrix(m, tol = 1e-09)
Value
TRUE if matrix is a correlation matrix, else FALSE.