compare.clust {label.switching} | R Documentation |
Make all estimated clusters agree with a pivot allocation
Description
Given a pivot allocation vector, a set of simulated allocations and a set of permutations from different relabelling algorithms, this function relabels the permutations so that all methods maximize their similarity with the pivot. This is helpful when comparing different different label switching algorithms.
Usage
compare.clust(pivot.clust,perms,z,K)
Arguments
pivot.clust |
a pivot allocation vector of the |
perms |
a list containing |
z |
a set of simulated allocation arrays. |
K |
number of mixture components |
Value
similarity |
|
clusters |
|
permutations |
releaballed permutations. |
Author(s)
Panagiotis Papastamoulis