companionMat: Construct Companion Matrix for AR(p) Process

View source: R/utils.R

companionMatR Documentation

Construct Companion Matrix for AR(p) Process

Description

Builds the companion matrix representation for an AR(p) process, which is used in the state-space formulation of SV(p) models.

Usage

companionMat(phi, p, q)

Arguments

phi

Numeric vector of AR coefficients (length p).

p

Integer. Order of the AR process.

q

Integer. Dimension of each block (typically 1 for univariate).

Value

A (q*p) x (q*p) companion matrix.


wARMASVp documentation built on May 15, 2026, 5:07 p.m.