is_stable_k-ConsensusPartitionList-method.Rd
Test whether the current k corresponds to a stable partition
# S4 method for ConsensusPartitionList
is_stable_k(object, k, ...)
A ConsensusPartitionList-class
object.
Number of subgroups.
It tests on the partitions for every method.
Logical vector
data(golub_cola)
is_stable_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