get_stats-ConsensusPartition-method {cola} | R Documentation |
Get statistics for the consensus partition
## S4 method for signature 'ConsensusPartition' get_stats(object, k = object@k, all_stats = FALSE)
object |
A |
k |
Number of partitions. The value can be a vector. |
all_stats |
Whether to show all statistics that were calculated. Used internally. |
The statistics are:
proportion of ambiguous clustering, calculated by PAC
.
the mean silhouette score. See https://en.wikipedia.org/wiki/Silhouette_(clustering) .
the mean probability that each partition fits the consensus partition, calculated by concordance
.
the increased area under ECDF (the empirical cumulative distribution function curve) to the previous k.
the Rand index which is the percent of pairs of samples that are both in a same cluster or both are not in a same cluster in the partition of k
and k-1
. See https://en.wikipedia.org/wiki/Rand_index .
the ratio of pairs of samples are both in a same cluster in the partition of k
and k-1
and the pairs of samples are both in a same cluster in the partition k
or k-1
.
A matrix of partition statistics.
Zuguang Gu <z.gu@dkfz.de>
data(cola_rl) obj = cola_rl["sd", "kmeans"] get_stats(obj) get_stats(obj, k = 2)