HDGC_HVAR_multiple: Test multiple combinations Granger causality in High...

View source: R/HDGC_HVAR_multiple.R

HDGC_HVAR_multipleR Documentation

Test multiple combinations Granger causality in High Dimensional HVARs

Description

This function is a wrapper around HDGC_HVAR that allows for multiple combinations to be tested

Usage

HDGC_HVAR_multiple(
  data,
  GCpairs,
  log = TRUE,
  bound = 0.5 * nrow(data),
  parallel = FALSE,
  n_cores = NULL
)

Arguments

data

the data matrix or an object that can be coerced to a matrix containing (stationary) realized volatilities.

GCpairs

it should contain a nested list: the outer list is all the pairs to be considered, the inner list contains the GCto and GCfrom vectors needed for HDGC_HVAR. See Example.

log

default is TRUE, if the realized volatilities are already log transformed then put to FALSE

bound

lower bound on tuning parameter lambda

parallel

TRUE for parallel computing

n_cores

numberr of cores to use in parallel computing, default is all but one

Value

LM Chi-square test statistics (asymptotic), LM F-stat with finite sample correction, LM Chi-square (asymptotic) with heteroscedasticity correction, all with their corresponding p-value. Lasso selections are also printed to the console.

References

Hecq, A., Margaritella, L., Smeekes, S., "Granger Causality Testing in High-Dimensional VARs: a Post-Double-Selection Procedure." arXiv preprint arXiv:1902.10991 (2019).

Corsi, Fulvio. "A simple approximate long-memory model of realized volatility." Journal of Financial Econometrics 7.2 (2009): 174-196.

Examples

## Not run: GC<-list(list("GCto"="Var 1", "GCfrom"="Var 2"),list("GCto"="Var 2", "GCfrom"="Var 3"))
## Not run: HDGC_HVAR_multiple(sample_RV,GCpairs=GC,log=TRUE)


Marga8/HDGCvar documentation built on May 25, 2024, 11:12 a.m.