Skip to main content

7.2. Granger Causality and Impulse Response Analysis

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 7.2. Granger Causality and Impulse Response Analysis in 7. Multivariate Time Series, Local Projections and Spillover Networks provides step-by-step How-To implementation guides for 4 econometric model lessons spanning from Section 7.2.1 to 7.2.4. Full theoretical derivations are available at VietLOD Part 7.2 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 7.2: Granger Causality and Impulse Response Analysis in Stata 18, R 4.x, and Python 3.11+

7.2.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Granger Causality and Impulse Response Analysis specifications within Multivariate Time Series, Local Projections and Spillover Networks.
  • Mandatory Post-Estimation Diagnostics: Kiểm định Wald χ2\chi^2 khối hệ số trễ trong (VAR) dừng hoặc kiểm định Wald sửa đổi của Toda–Yamamoto trên hệ VAR bậc p+dmax⁡p + d_{\max} sau khi đã đảm bảo phần dư không tự tương quan.

Core structural specification for Part 7.2:

Yt=α0+∑j=1pαjYt−j+∑j=1pβjXt−j+ut,H0:β1=⋯=βp=0Y_t = \alpha_0 + \sum_{j=1}^p \alpha_j Y_{t-j} + \sum_{j=1}^p \beta_j X_{t-j} + u_t, \quad H_0: \beta_1 = \dots = \beta_p = 0

Estimator objective and moment conditions:

Yt=c+∑ℓ=1pAℓYt−ℓ+B−1Σuεt,Ψh=∂Yt+h∂εt⊤=ΦhB−1ΣuY_t = c + \sum_{\ell=1}^p A_\ell Y_{t-\ell} + B^{-1}\Sigma_u \varepsilon_t, \quad \Psi_h = \frac{\partial Y_{t+h}}{\partial \varepsilon_t^\top} = \Phi_h B^{-1}\Sigma_u
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 7.2, researchers should transition to the extended methodological parts in Chapter 7 or apply appropriate instrumental-variable and cluster-robust corrections.

7.2.2. Econometric Model Lessons in Part 7.2​

7.2.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+​

Section & Model TitleEstimator KeyStata 18 MP SyntaxR 4.x SyntaxPython 3.11+ SyntaxSupport
7.2.1 · Multi-Lag Granger Causality Systemgranger_causalityvar y x1 x2, lags(1/2) -> vargrangerlmtest::grangertest(y ~ x1, order = 2, data = df)grangercausalitytests(df[['y', 'x1']], maxlag=2)Available
7.2.2 · Orthogonalized Impulse Response System — IRFimpulse_responsevar y x1 x2, lags(1/2) -> irf create oirf, step(10)vars::irf(var_fit, impulse = 'x1', response = 'y', n.ahead = 10)VAR(df[['y', 'x1', 'x2']]).fit(2).irf(10)Available

| 7.2.3 · Hatemi J Asymmetric Positive and Negative Granger Causality | hatemi_j_asymmetric_causality | var y x_pos x_neg, lags(1/2) + vargranger | vars::VAR on cumulative positive/negative shock components | Cumulative partial-sum decomposition + asymmetric Wald causality F-tests | Available | | 7.2.4 · Bates Granger Optimal Forecast Combination and Mincer Zarnowitz Efficiency | mincer_zarnowitz_forecast_combination | newey y x1 x2, lag(2) & test (_cons = 0) (x1 = 1) | ForecastComb::comb_GR + sandwich::NeweyWest | Granger-Ramanathan HAC regression + Bates-Granger optimal weights + MZ joint Wald F-test | Available |

7.2.4. Standard Implementation Workflow for Part 7.2​

Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco

Download the model-specific .csv practice dataset in Part 7.2 or extract custom empirical panels from EcoData and Finco.

Step 2. Select the Optimal Estimator for Your Error and Sample Structure

Compare the estimators from 7.2.1 to 7.2.4 in the syntax matrix above and execute the estimation in Stata 18 MP, R 4.x, or Python 3.11+.

Step 3. Run Mandatory Diagnostics and Export Publication Tables on EcoLab

Verify all required diagnostics including Kiểm định Wald χ2\chi^2 khối hệ số trễ trong (VAR) dừng hoặc kiểm định Wald sửa đổi của Toda–Yamamoto trên hệ VAR bậc p+dmax⁡p + d_{\max} sau khi đã đảm bảo phần dư không tự tương quan and dispatch the specification to EcoLab for automated journal-grade reporting.