Calculate the conditional means of the process
Calculates the conditional means of the process
get_mu_yt_Cpp(obs, all_phi0, all_A, alpha_mt)
obs
: a matrix such that the i:th row contains the vector , where
. That is, the initial values are included but the last observations not.
all_phi0
: a matrix such that the m:th column contains the intercept parameters of the m:th regime.
all_A
: a array such that the slice [, , m]
contains the AR matrices of the m:th regime cbinded together: .
alpha_mt
: a matrix such that [t, m]
contains the time t transition weights of the m:th regime.
a matrix such that the i:th row contains the conditional mean of the process.