Learn R Programming

sparsevar (version 1.0.0)

companion_var: Companion VAR

Description

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

Usage

companion_var(v)

Value

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

Arguments

v

the VAR object as from fitVAR or simulateVAR