regime_distance
calculates "distance" between two scaled regimes. This is used in
the genetic algorithm.
regime_distance(regime_pars1, regime_pars2)
a length \(pd^2+d+d(d+1)/2\) vector \(\upsilon_{m}\)\( = (\phi_{m,0},\)\(\phi_{m}\)\(,\sigma_{m})\).
a length \(pd^2+d+d(d+1)/2\) vector \(\upsilon_{m}\)\( = (\phi_{m,0},\)\(\phi_{m}\)\(,\sigma_{m})\).
Returns "distance" between regime_pars1
and regime_pars2
. Values are scaled
before calculating the "distance". Read the source code for more details.
No argument checks!
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.