Made for: Master's dissertation student
Your data is ready. The model isn't cooperating.
Sound familiar?
- The Hausman test says one thing and your supervisor says another
- Stata or EViews throws errors you can't decode at 1 a.m.
- You're not sure your results are even the right ones to report
- The deadline is fixed, and your supervisor has 20 other students
We diagnose your model, run it with you, and explain every number so you can defend it.
What Granger causality means (and doesn't)
X Granger-causes Y if past values of X improve the prediction of Y beyond what past values of Y already provide (Granger, 1969). It's a statement about predictive precedence, not true causation. A third variable driving both, or forward-looking behaviour, can create Granger causality without any causal effect.
Phrase your conclusions accordingly: "energy consumption Granger-causes GDP", not "energy consumption causes GDP".
The test can find four outcomes:
| Result | Meaning |
|---|---|
| X → Y only | Unidirectional causality from X to Y |
| Y → X only | Unidirectional causality from Y to X |
| X ↔ Y | Bidirectional (feedback) |
| Neither | Independence (neutrality) |
Step by step (stationary data)
- Check stationarity with Unit root tests (ADF, KPSS). Standard Granger tests need stationary variables (levels if I(0), differences if I(1) and not cointegrated).
- Select the lag length with AIC/SIC from a VAR.
- Estimate the VAR and run Wald tests that all lags of X are jointly zero in the equation for Y (and vice versa).
- Check that the VAR residuals have no serial correlation.
* Stata
varsoc dgdp denergy, maxlag(4)
var dgdp denergy, lags(1/2)
vargranger
library(vars)
v <- VAR(df[, c("dgdp","denergy")], p = 2, type = "const")
causality(v, cause = "denergy")$Granger
In EViews: open the variables as a group, then View → Granger Causality, enter the lags. For VAR-based tests: estimate the VAR, then View → Lag Structure → Granger Causality/Block Exogeneity Tests.
If your variables are I(1)
- Cointegrated: test causality within the VECM. Long-run causality comes from the significance of the error-correction term; short-run causality from Wald tests on lagged differences. See Johansen test & VECM.
- Not sure, or mixed orders: use the Toda-Yamamoto (1995) procedure. Estimate a VAR in levels with k + dmax lags (k from information criteria, dmax the maximum order of integration), then Wald-test only the first k lags. It's valid whatever the integration and cointegration properties.
Panel Granger causality
For panels, use the Dumitrescu-Hurlin (2012) test, which allows heterogeneous coefficients across units (xtgcause in Stata, user-written). Check cross-sectional dependence first; with strong dependence, bootstrap critical values are available.
How to report it
Example: Toda-Yamamoto Wald tests (k = 2, dmax = 1) show that energy consumption Granger-causes GDP (χ²(2) = 9.41, p = .009), but GDP does not Granger-cause energy consumption (χ²(2) = 1.87, p = .39). This unidirectional causality supports the "growth hypothesis".
Show a table with the null hypothesis, the test statistic, the p-value and the decision for each direction.
Common mistakes
- Running Granger tests on non-stationary levels with standard critical values.
- Claiming "causation" in the everyday sense.
- Results that change completely with one extra lag. Report sensitivity to lag choice.
- Testing causality in a bivariate system when an obvious third variable is omitted (e.g. prices, in an energy–growth study).
Frequently asked questions
How many lags should I use?
Use AIC/SIC from the VAR, then show that conclusions are robust to ±1 lag. With annual data, 1–3 lags are typical.
Can I use Granger causality with cross-sectional data?
No. It needs a time dimension. For cross-sections, causal claims require a design like Instrumental variables (IV/2SLS) or Difference-in-differences.