Mixed Membership models are invariant to permutations of the sub-population labels; swapping the names of each sub-population yields an equivalent model.
The ordering of the labels in a fitted model is dependent on the initialization points of the variational EM algorithim.
The permuteLabels function returns a mixedMemModel object where the labels (for \(\theta\), \(\phi\), \(\delta\) and \(\alpha\)) have been permuted
according a given permutation of the integers 1 through K. The findLabels function can be used to find a permutation of the labels which
most closely matches another fitted model.
permuteLabels(model, perm)a fitted mixedMemModel object which will be relabeled.
a vector of length K with integers 1:K. This is the permutation by which to relabel the mixedMemModel object such that
group i in the returned mixedMemModel object corresponds to group perm[i] from the input mixedMemModel object.
permuteLabels returns a mixedMemModel object such that
group i in the returned mixedMemModel object corresponds to group perm[i] from the input mixedMemModel object
findLabels