This function allows a re-ordering of the latent classes of an estimated model.
Arguments
- m
an object inheriting from classes
hlme
,lcmm
,multlcmm
orJointlcmm
- order
a vector (integer between 1 and ng) containing the new order of the latent classes
- estim
optional boolean specifying if the model should estimated with the reordered parameters as initial values. By default, the model is estimated. If FALSE, only the coefficients in
$best
are modified. All other outputs are not changed.