is_stable_k-ConsensusPartition-method.Rd
Test whether the current k corresponds to a stable partition
# S4 method for ConsensusPartition
is_stable_k(object, k, stable_PAC = 0.1, ...)
A ConsensusPartition-class
object.
Number of subgroups.
Cutoff for stable PAC.
if 1-PAC for the k is larger than 0.9 (10% ambiguity for the partition), cola marks it as a stable partition.
Logical scalar.
data(golub_cola)
obj = golub_cola["ATC", "skmeans"]
is_stable_k(obj, k = 2)
#> [1] TRUE
is_stable_k(obj, k = 3)
#> [1] TRUE