sort_components
sorts mixture components in the parameter vector according
to mixing weights into a decreasing order.
sort_components(p, M, d, params, structural_pars = NULL)
a positive integer specifying the autoregressive order of the model.
a positive integer specifying the number of mixture components.
the number of time series in the system.
a real valued vector specifying the parameter values.
Should be size
and
Should have the form
Above,
If parametrization=="mean"
, just replace each
If NULL
a reduced form model is considered. For structural model, should be a list containing
the following elements:
W
- a NA
indicating that the element is
unconstrained, a positive value indicating strict positive sign constraint, a negative value indicating strict
negative sign constraint, and zero indicating that the element is constrained to zero.
C_lambda
- a C_lambda
must be either positive or zero. Ignore (or set to NULL
) if the eigenvalues
See Virolainen (2020) for the conditions required to identify the shocks and for the B-matrix as well (it is
Returns sorted parameter vector...
...with
and
...with
Above,
No argument checks!
Constrained parameter vectors are not supported (expect for constraints in W but including constraining some mean parameters to be the same among different regimes)! For structural models, sorting the regimes in a decreasing order requires re-parametrizing the decomposition of the covariance matrices if the first regime changes. As a result, the sorted parameter vector will differ from the given one not only by the ordering of the elements but also by some of the parameter values.
Kalliovirta L., Meitz M. and Saikkonen P. 2016. Gaussian mixture vector autoregression. Journal of Econometrics, 192, 485-498.
Virolainen S. 2020. Structural Gaussian mixture vector autoregressive model. Unpublished working paper, available as arXiv:2007.04713.