get_mu_yt_Cpp function

Calculate the conditional means of the process

Calculate the conditional means of the process

Calculates the conditional means μy,t\mu_{y,t} of the process

get_mu_yt_Cpp(obs, all_phi0, all_A, alpha_mt)

Arguments

  • obs: a (T×dp)(T \times dp) matrix such that the i:th row contains the vector (yi1,...,yip)(y_{i-1},...,y_{i-p}) ((dp)x1)((dp)x1), where yi=(y1i,...,ydi)y_{i}=(y_{1i},...,y_{di})

    (dx1)(dx1). That is, the initial values are included but the last observations not.

  • all_phi0: a (d×M)(d \times M) matrix such that the m:th column contains the intercept parameters of the m:th regime.

  • all_A: a (d×dp×M)(d \times dp \times M) array such that the slice [, , m]

    contains the AR matrices of the m:th regime cbinded together: [Am,1:...:Am,p][A_{m,1}:...:A_{m,p}].

  • alpha_mt: a (T×M)(T \times M) matrix such that [t, m] contains the time t transition weights of the m:th regime.

Returns

a (T×d)(T \times d) matrix such that the i:th row contains the conditional mean of the process.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27