View source: R/manuscript-viz.R
| clustering_concordance | R Documentation |
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.
clustering_concordance(labels_list)
labels_list |
A named list of label vectors, all of the same length. |
A list with agreement (pairwise ARI matrix), stability
(mean pairwise co-membership per object) and changed (objects whose
label is not constant across solutions).
cluster_agreement, compare_clusterings
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.