mixAR_switch | R Documentation |
Relabel the components of a MixAR model.
mixAR_switch(model, perm)
mixAR_permute(model, perm)
model |
a MixAR model |
perm |
a permutation for relabeling |
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.
Currently the function only reorders the "usual" components. Subclasses of "MixAR" may contain other parameters (e.g. different error distributions). So this function may not be appropriate for them.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.