concordance {cola} | R Documentation

## Concordance to the consensus partition

### Description

Concordance to the consensus partition

### Usage

    concordance(membership_each, class)

### Arguments

`membership_each` | A matrix which contains partitions in every single runs where columns correspond to runs. The object can be get from `get_membership(..., each = TRUE)`.
`class` | Consensus subgroup labels.

### Details

Note subgroup labels in `membership_each` should already be adjusted to the consensus labels, e.g. by `relabel_class`.

The concordance score is the mean proportion of samples having the same subgroup labels as the consensus labels among individual partition runs.

### 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.4.1 Index]