companion_var: Companion VAR

View source: R/utilsVAR.R

companion_varR Documentation

Companion VAR

Description

Build the VAR(1) representation of a VAR(p) process

Usage

companion_var(v)

Arguments

v

the VAR object as from fitVAR or simulateVAR

Value

A sparse matrix (of class dgCMatrix) representing the companion form of the VAR(p) process.


sparsevar documentation built on Feb. 5, 2026, 1:07 a.m.