I am working on testing Granger causality, in particular with the Toda & Yamamoto approach as in Dave Giles blog post "VAR or VECM When Testing for Granger Causality?".
Can I consider more than two variables in the VAR model?
For now, I have $y$ and $x$, with causality running from $y$ to $x$. I want to test if a third variable (confounding variable) might influence this causality. I'm unsure whether to test another model with a second predictor and simply compare the results or if there's any other way to measure the influence of a third variable.
For example, I find that sentiments Granger cause the stock price but I'd like to check whether interest rates have an influence on this VAR.
Best Answer
Yes, of course. You would not find a restriction like "no more than two variables" in a textbook, and you would find applied work with more than two series. Also, here is an explicit answer by Dave Giles from his blog post "Questions About Granger Causality Testing - The Fine Print":
Call stock price $p$, sentiments $s$, and interest rate $i$. Take a VAR(1) model
$$ \begin{aligned} p_t &= \beta_{10} + \beta_{11} p_{t-1} + \beta_{12} s_{t-1} + \beta_{13} i_{t-1} + \varepsilon_{1,t} \\ s_t &= \beta_{20} + \beta_{21} p_{t-1} + \beta_{22} s_{t-1} + \beta_{23} i_{t-1} + \varepsilon_{2,t} \\ i_t &= \beta_{30} + \beta_{31} p_{t-1} + \beta_{32} s_{t-1} + \beta_{33} i_{t-1} + \varepsilon_{3,t} \end{aligned} $$
Below are some examples of how to test different hypotheses.
The last one tells you whether interest rates play a role in determining stock prices and sentiment (at least one of them), which seems to be what you are interested in.