View source: R/HDGC_VAR_all_I0.R
HDGC_VAR_all_I0 | R Documentation |
Wrapper around HDGC_VAR_multiple_I0
which tests Granger causality from each variable to all other variables,
one by one. Can therefore be used to construct a network.
HDGC_VAR_all_I0(
data,
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. |
p |
lag length of 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 |
Granger causality matrix and Lasso selections are 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: HDGC_VAR_all_I0(data=sample_dataset_I0,p=2,parallel=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.