calcResid_MSARXmdl: Markov-switching autoregressive model residuals

View source: R/RcppExports.R

calcResid_MSARXmdlR Documentation

Markov-switching autoregressive model residuals

Description

This function computes residuals of a Markov-switching autoregressive model.

Usage

calcResid_MSARXmdl(mdl, mu, k)

Arguments

mdl

List containing relevant parameters.

mu

Vector with mean in each regime.

k

number of regimes. Must be greater than or equal to 2.

Value

A (TxM) matrix of residuals in each regime M where M=k^(ar+1).


roga11/MSTest documentation built on Feb. 25, 2025, 6:10 p.m.