Learn R Programming

mixedMem (version 1.0.2)

permuteLabels: Mixed Membership Post-Processing

Description

Mixed Membership models are invariant to permutations of the sub-population labels and the ordering of the labels is dependent on the initialization of the variational EM algorithim. Given a permutation, which can be found using findLabels, the method returns a mixedMemModel object with permuted labels

Usage

permuteLabels(model, perm)

Arguments

model
the fitted mixedMemModel object
perm
the permutation by which to relabel the mixedMemModel object. Must be a vector of length model$K.

Value

  • a permuted mixedMemModel object

See Also

findLabels