| permuteLabels {mixedMem} | R Documentation |
Mixed Membership Post-Processing
Description
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.
Usage
permuteLabels(model, perm)
Arguments
model |
a fitted |
perm |
a vector of length K with integers 1:K. This is the permutation by which to relabel the |
Value
permuteLabels returns a mixedMemModel object such that
group i in the returned mixedMemModel object corresponds to group perm[i] from the input mixedMemModel object
See Also
findLabels