concordance {cola}R Documentation

Concordance of partitions to the consensus partition

Description

Concordance of partitions to the consensus partition

Usage

concordance(membership_each, class)

Arguments

membership_each

a matrix which contains partitions in every single runs.

class

consensus class IDs.

Details

Class IDs in membership_each have already be adjusted to the consensus class IDs to let sum(x_single == x_consensus) reach maximum.

The concordance score is the mean probability of fitting the consensus class IDs in all partitions.

This function is used internally.

Value

A numeric value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rl)
membership_each = get_membership(cola_rl["sd", "kmeans"], each = TRUE, k = 3)
consensus_classes = get_classes(cola_rl["sd", "kmeans"], k = 3)$class
concordance(membership_each, consensus_classes)

[Package cola version 1.0.0 Index]