tomarparambyComp
is for completeness, my Mathematica programs
do not have this currently.
The arrangement of the parameters of MixAR models in package
"MixAR"
is ``by type'': slot prob
contains the mixture
probabilities (weights), shift
contains intercepts, and so on.
An alternative representation is ``by component'': a list whose k-th
elements contains all parameters associated with the k-th mixture
component. The functions described here use the following order for
the parameter of the k-th component: prob_k, shift_k, arcoeff_k,
sigma2_k.
tomarparambyType
takes an argument, params
, arranged
``by component'' and converts it to ``by type''.
tomarparambyComp
does the inverse operation, from ``by type''
to ``by component''.
permuteArpar
creates all permutaions of the components of a
MixAR model. It takes a ``by component'' argument. The autoregressive
orders are not permuted, in that if the input model has AR orders
c(2, 1, 3)
, all permuted models are also c(2, 1, 3)
.
The AR coefficients of shorter or longer components are padded with
zeroes or truncated, respectively, see the unexported
adjustLengths()
.