Learn R Programming

mixAR (version 0.22.8)

mixAR_switch: Relabel the components of a MixAR model

Description

Relabel the components of a MixAR model.

Usage

mixAR_switch(model, perm)
mixAR_permute(model, perm)

Arguments

model

a MixAR model

perm

a permutation for relabeling

Details

If the permutation is the identity permutation the model is returned as is. Otherwise the order of the components is changed according to perm. Basically, perm is used as index, e.g. prob[perm], etc.