get_stats-ConsensusPartition-method | R Documentation |
Get statistics
## S4 method for signature 'ConsensusPartition'
get_stats(object, k = object@k, all_stats = FALSE)
object |
A |
k |
Number of subgroups. The value can be a vector. |
all_stats |
Whether to show all statistics that were calculated. Used internally. |
The statistics are:
1 - 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.
This 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(golub_cola)
obj = golub_cola["ATC", "skmeans"]
get_stats(obj)
get_stats(obj, k = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.