clustering_concordance: Compare clustering solutions to each other (no ground truth...

View source: R/manuscript-viz.R

clustering_concordanceR Documentation

Compare clustering solutions to each other (no ground truth needed)

Description

Given several labellings of the same objects (e.g. different weightings or methods), compute their pairwise agreement (ARI) and each object's stability – how consistently it is co-clustered across the solutions. Useful for real data where no ground truth is available.

Usage

clustering_concordance(labels_list)

Arguments

labels_list

A named list of label vectors, all of the same length.

Value

A list with agreement (pairwise ARI matrix), stability (mean pairwise co-membership per object) and changed (objects whose label is not constant across solutions).

See Also

cluster_agreement, compare_clusterings

Examples

data(mosaic_toy)
v <- mosaic_labels(M_ABC(mosaic_toy$List, numsim = 40, NC = 3,
                           weighting = c("var", "var")), 3)
n <- mosaic_labels(M_ABC(mosaic_toy$List, numsim = 40, NC = 3,
                           weighting = c("nugget", "nugget")), 3)
clustering_concordance(list(var = v, nugget = n))$agreement

MosaiClusteR documentation built on Oct. 25, 2026, 1:08 a.m.