7.2. Granger Causality and Impulse Response Analysis
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 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 sau khi đã đảm bảo phần dư không tự tương quan.
Core structural specification for Part 7.2:
Estimator objective and moment conditions:
7.2.2. Econometric Model Lessons in Part 7.2
Estimates the Multi-Lag Granger Causality System specification within the Granger Causality and Impulse Response Analysis framework by optim...
Estimates the Orthogonalized Impulse Response System — IRF specification within the Granger Causality and Impulse Response Analysis framewor...
7.2.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+
| Section & Model Title | Estimator Key | Stata 18 MP Syntax | R 4.x Syntax | Python 3.11+ Syntax | Support |
|---|---|---|---|---|---|
| 7.2.1 · Multi-Lag Granger Causality System | granger_causality | var y x1 x2, lags(1/2) -> vargranger | lmtest::grangertest(y ~ x1, order = 2, data = df) | grangercausalitytests(df[['y', 'x1']], maxlag=2) | Available |
| 7.2.2 · Orthogonalized Impulse Response System — IRF | impulse_response | var 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 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 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.