granger.test(y, p)
y
include variable or dimnames
.
The test is implemented by regressing Y on p past values of Y and p past values of X. An F-test is then used to determine whether the coefficients of the past values of X are jointly zero.
This produces a matrix with m*(m-1) rows that are all of the possible bivariate Granger causal relations. The results include F-statistics and p-values for each test. Tests are estimated using single equation OLS models.
reduced.form.var
for frequentist VAR estimation,
szbvar
for Bayesian VAR estimation with Sims-Zha prior,
var.lag.specification
for VAR lag length testing.
data(IsraelPalestineConflict)
granger.test(IsraelPalestineConflict, p=6)
Run the code above in your browser using DataLab