ListCongruence: Calculate the Tucker Congruence of two lists of matrices

View source: R/ListCongruence.R

ListCongruenceR Documentation

Calculate the Tucker Congruence of two lists of matrices

Description

Calculate the Tucker Congruence of two lists of matrices

Usage

ListCongruence(lista, listb, cluster_num)

Arguments

lista

the first list with matrix elements

listb

the second list with matrix elements

cluster_num

the number of cluster (which should also be the maximum length of the two lists)

Value

a vector of length cluster_num. nth elemen of the vector indicates the optimal congruence between the nth matrix in lista and the listb (maximum possible value)

Examples

# calculate the simulated (original) data and the (re-covered) data
(not run)  sim <- CSSCASimulation(n_cluster, mem_cluster, n_block, n_com, n_distinct, n_var, p_sparse,
 p_noise, p_combase, p_fixzero, "both", mean_v)
(not run)  results <- MainCSSCA(sim$concatnated_data, n_var, n_block, n_com, n_distinct, n_cluster, n_obs, p_sparse, sim$cluster_assign, n_replace = 5)
# calculate the average congruence between the simulated loading matrices and estimated loading matrices
ListCongruence(sim$loading, results$loading)


syuanuvt/CSSCA documentation built on Nov. 28, 2022, 7:58 p.m.