Get statistics

# S4 method for ConsensusPartitionList
get_stats(object, k, all_stats = FALSE)

Arguments

object

A ConsensusPartitionList-class object.

k

Number of subgroups. The value can only be a single value.

all_stats

Whether to show all statistics that were calculated. Used internally.

Value

A matrix of partition statistics for a selected k. Rows in the matrix correspond to combinations of top-value methods and partitioning methods.

Author

Zuguang Gu <z.gu@dkfz.de>

Examples

data(golub_cola)
get_stats(golub_cola, k = 2)
#>             k     1-PAC mean_silhouette concordance area_increased      Rand
#> SD:skmeans  2 1.0000000       0.9878910   0.9950000      0.4867348 0.5121283
#> CV:skmeans  2 1.0000000       0.9754655   0.9894444      0.4882527 0.5121283
#> MAD:skmeans 2 1.0000000       0.9772774   0.9902778      0.4880495 0.5121283
#> ATC:skmeans 2 1.0000000       0.9953240   0.9977778      0.5070513 0.4933490
#> SD:mclust   2 0.9970162       0.9456561   0.9780556      0.4899062 0.5121283
#> CV:mclust   2 1.0000000       0.9706630   0.9875000      0.4762775 0.5246479
#> MAD:mclust  2 0.9139596       0.9429971   0.9766667      0.4749382 0.5246479
#> ATC:mclust  2 1.0000000       0.9684868   0.9819444      0.3406818 0.6494523
#> SD:kmeans   2 1.0000000       0.9748797   0.9791667      0.4747670 0.5179969
#> CV:kmeans   2 1.0000000       0.9783007   0.9902778      0.4746695 0.5246479
#> MAD:kmeans  2 1.0000000       0.9954798   0.9900000      0.4704740 0.5246479
#> ATC:kmeans  2 0.9420544       0.9542907   0.9802778      0.5032466 0.4945227
#> SD:pam      2 0.7695347       0.9214171   0.9597222      0.4823156 0.5246479
#> CV:pam      2 0.6931519       0.8694426   0.9394444      0.4967491 0.5027387
#> MAD:pam     2 0.8002634       0.9045510   0.9588889      0.4857005 0.5121283
#> ATC:pam     2 0.8959614       0.9368121   0.9705556      0.4982240 0.4992175
#> SD:hclust   2 0.8125549       0.9108634   0.9577778      0.4567157 0.5402973
#> CV:hclust   2 0.5627744       0.8160426   0.9097222      0.4450421 0.5492958
#> MAD:hclust  2 0.5610184       0.8694379   0.9308333      0.4588383 0.5320814
#> ATC:hclust  2 0.8867428       0.8665934   0.9472222      0.4958534 0.4992175
#>               Jaccard
#> SD:skmeans  0.5121283
#> CV:skmeans  0.5121283
#> MAD:skmeans 0.5121283
#> ATC:skmeans 0.4933490
#> SD:mclust   0.5121283
#> CV:mclust   0.5246479
#> MAD:mclust  0.5246479
#> ATC:mclust  0.6494523
#> SD:kmeans   0.5179969
#> CV:kmeans   0.5246479
#> MAD:kmeans  0.5246479
#> ATC:kmeans  0.4945227
#> SD:pam      0.5246479
#> CV:pam      0.5027387
#> MAD:pam     0.5121283
#> ATC:pam     0.4992175
#> SD:hclust   0.5402973
#> CV:hclust   0.5492958
#> MAD:hclust  0.5320814
#> ATC:hclust  0.4992175