companionMat: Companion Matrix

View source: R/helperfuncs.R

companionMatR Documentation

Companion Matrix

Description

This function converts the (q x 1) vector of constants and (q x qp) matrix of autoregressive coefficients into (qp x qp) matrix belonging to the companion form

Usage

companionMat(phi, p, q)

Arguments

phi

matrix of dimension (q x qp) containing autoregressive coefficients.

p

integer for number of autoregressive lags.

q

integer for number of series.

Value

matrix of dimension (qp x qp) of companion form.


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