View source: R/edec_aux_functions.R
find_best_perm | R Documentation |
This function finds the permutation of a correlation matrix that is most similar to the identity matrix.
find_best_perm(cor_matrix)
cor_matrix |
A matrix of pairwise correlations between a set of numeric vectors |
A list containing the following components:
pmatrix
The permuted correlation matrix.
pvec
The permutation vector, such that pmatrix =
cor_matrix[pvec, ]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.