powered by
Computes the test statistics for Granger- and Instantaneous causality for a VAR(p).
causality_sh(x, cause = NULL, vcov. = NULL, boot = FALSE, boot.runs = 100)
A list of class attribute "htest" with the following elements: Granger, Instant.
Granger
Instant
An object of class "varshrinkest" obtained by VARshrink().
Other arguments for causality analysis; see help(causality) for details.
This function runs vars::causality() for an object of class "varshrinkest".
vars::causality()
causality
data(Canada, package = "vars") y <- diff(Canada) estim <- VARshrink(y, p = 2, type = "const", method = "ridge") causality_sh(estim, cause = "e")
Run the code above in your browser using DataLab