consensus_similarity {CommKern} | R Documentation |
Consensus Similarity
Description
Description of the consensus similarity function.
Usage
consensus_similarity(comm_matrix)
Arguments
comm_matrix |
a matrix whose columns are different partition and whose rows are nodes within a network |
Details
This function identifies a single representative partition from a set of partitions that is the most similar to the all others. Here, similarity is taken to be the z-score of the Rand coefficient.
Value
the consensus partition determined by the maximum average pairwise similarity
Examples
set.seed(7183)
x <- sample(x = rep(1:3, 4), 12)
y <- sample(x = rep(1:3, 4), 12)
z <- sample(x = rep(1:3, 4), 12)
xyz_comms_mat <- matrix(c(x,y,z),nrow=length(x),ncol=3)
consensus_similarity(xyz_comms_mat)
[Package CommKern version 1.0.1 Index]