View source: R/HDGC_VAR_multiple_I0.R
HDGC_VAR_multiple_I0 | R Documentation |
This function is a wrapper around HDGC_VAR_I0
that allows for multiple combinations to be tested
HDGC_VAR_multiple_I0(
data,
GCpairs,
p = 1,
bound = 0.5 * nrow(data),
parallel = FALSE,
n_cores = NULL
)
data |
the data matrix or object that can be coerced to a matrix. |
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 |
p |
lag length of the VAR |
bound |
lower bound on tuning parameter lambda |
parallel |
TRUE for parallel computing |
n_cores |
nr of cores to use in parallel computing, default is all but one |
LM Chi-square test statistics (asymptotic), LM F-stat with finite sample correction, both with their corresponding p-value. Lasso selections are also printed to the console.
Hecq, A., Margaritella, L., Smeekes, S., "Granger Causality Testing in High-Dimensional VARs: a Post-Double-Selection Procedure." arXiv preprint arXiv:1902.10991 (2019).
## Not run: GC=list(list("GCto"="Var 1", "GCfrom"="Var 2"),list("GCto"="Var 2", "GCfrom"="Var 3"))
## Not run: HDGC_VAR_multiple_I0(sample_dataset_I0, GC, p=1 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.