get_allA_yti
computes the autoregression matrices \(A_{y,t,i}\equiv \sum_{m=1}^M\alpha_{m,t}A_{m,i}\), for all lags \(i=1,...,p\)
for a single time period, based on the regime autoregression matrices and transition weights.
get_allA_yti(all_A, alpha_mt)
Returns the 3D array containing the coefficient matrices for the given time period so that the lag \(i\) coefficient matrix \(A_{y,t,i}\)
can be obtained by choosing [, , i]
.
4D array containing the coefficient matrices of all regimes so that coefficient matrix
\(A_{m,i}\) can be obtained by choosing [, , i, m]
(as obtained from pick_allA
).
an \((M \times 1)\) vector containing the time period \(t\) transition weights.
This is used in simulation of the counterfactual scenarios.