Learn R Programming

sparsevar (version 1.0.0)

test_granger: Test for Ganger Causality

Description

This function should retain only the coefficients of the matrices of the VAR that are statistically significative (from the bootstrap)

Usage

test_granger(v, eb)

Value

A list of matrices containing only the statistically significant VAR coefficients (non-significant coefficients are set to zero).

Arguments

v

the VAR object as from fitVAR or simulateVAR

eb

the error bands as obtained from errorBands