find_best_perm: Find best permutation of correlation matrix

View source: R/edec_aux_functions.R

find_best_permR Documentation

Find best permutation of correlation matrix

Description

This function finds the permutation of a correlation matrix that is most similar to the identity matrix.

Usage

find_best_perm(cor_matrix)

Arguments

cor_matrix

A matrix of pairwise correlations between a set of numeric vectors

Value

A list containing the following components:

pmatrix

The permuted correlation matrix.

pvec

The permutation vector, such that pmatrix = cor_matrix[pvec, ].


bozdaglab/CTDPathSim2.0 documentation built on April 14, 2022, 12:39 a.m.