is_best_k-ConsensusPartitionList-method.Rd
Test whether the current k is the best/optional k
# S4 method for ConsensusPartitionList
is_best_k(object, k, ...)
A ConsensusPartitionList-class
object.
Number of subgroups.
It tests on the partitions for every method.
Logical vector.
data(golub_cola)
is_best_k(golub_cola, k = 3)
#> SD:skmeans CV:skmeans MAD:skmeans ATC:skmeans SD:mclust CV:mclust
#> FALSE FALSE FALSE TRUE TRUE FALSE
#> MAD:mclust ATC:mclust SD:kmeans CV:kmeans MAD:kmeans ATC:kmeans
#> FALSE FALSE FALSE FALSE FALSE FALSE
#> SD:pam CV:pam MAD:pam ATC:pam SD:hclust CV:hclust
#> FALSE FALSE FALSE TRUE FALSE FALSE
#> MAD:hclust ATC:hclust
#> FALSE FALSE