Test whether the current k is the best/optional k

# S4 method for ConsensusPartitionList
is_best_k(object, k, ...)

Arguments

object

A ConsensusPartitionList-class object.

k

Number of subgroups.

...

Pass to suggest_best_k,ConsensusPartitionList-method.

Details

It tests on the partitions for every method.

Value

Logical vector.

Examples

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