Skip to main content

7.3. Local Projections Suite

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 7.3. Local Projections Suite in 7. Multivariate Time Series, Local Projections and Spillover Networks provides step-by-step How-To implementation guides for 3 econometric model lessons spanning from Section 7.3.1 to 7.3.3. Full theoretical derivations are available at VietLOD Part 7.3 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 7.3: Local Projections Suite in Stata 18, R 4.x, and Python 3.11+

7.3.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Local Projections Suite specifications within Multivariate Time Series, Local Projections and Spillover Networks.
  • Mandatory Post-Estimation Diagnostics: Dải tin cậy đồng thời/điểm 68%68\% & 95%95\% Newey–West HAC theo chân trời hh, kiểm định Wald tích lũy, kiểm định phi tuyến trạng thái..

Core structural specification for Part 7.3:

Yt+h=αh+βhshockt+∑ℓ=1pΓh,ℓ⊤Wt−ℓ+ut+h,IRF^(h)=β^h,h=0,1,…,HY_{t+h} = \alpha_h + \beta_h \text{shock}_t + \sum_{\ell=1}^p \Gamma_{h,\ell}^\top W_{t-\ell} + u_{t+h}, \quad \widehat{\text{IRF}}(h) = \hat{\beta}_h, \quad h = 0, 1, \dots, H

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.3, researchers should transition to the extended methodological parts in Chapter 7 or apply appropriate instrumental-variable and cluster-robust corrections.

7.3.2. Econometric Model Lessons in Part 7.3​

7.3.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.3.1 · Jorda Lag-Augmented Local Projectionslocal_projectionslpirf y x1 x2, step(12) lags(1/4) vce(hac nwest)lpirfs::lp_lin(endog_data = df[, c('y', 'x1', 'x2')], lags_endog_lin = 4, hor = 12, nw_lag = 4)smf.ols('y_lead_h ~ shock + l1_y + x1 + x2', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 4})Available
7.3.2 · Instrumental Variables Local Projectionslocal_projections_ivivregress 2sls f4.y l(1/2).y (policy = z_shock), vce(hac nwest 5)lpirfs::lp_lin_iv(endog_data = df, shock = shock_df, instrum = z_df, hor = 12)IV2SLS.from_formula('y_lead_h ~ 1 + l1_y + [policy ~ z_shock]', data=df).fit(cov_type='kernel')Available
7.3.3 · Panel Local Projections with Driscoll-Kraay Inferencepanel_local_projectionsreghdfe f4.y shock l1_y x1, absorb(id year) vce(cluster id)lpirfs::lp_lin_panel(data_set = df, endog_data = 'y', shock = 'shock', panel_model = 'within', hor = 8)pyfixest.feols('y_lead_h ~ shock + l1_y + x1 | id + year', data=df, vcov={'CRV1': 'id'})Available

7.3.4. Standard Implementation Workflow for Part 7.3​

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

Download the model-specific .csv practice dataset in Part 7.3 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.3.1 to 7.3.3 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 Dải tin cậy đồng thời/điểm 68%68\% & 95%95\% Newey–West HAC theo chân trời hh, kiểm định Wald tích lũy, kiểm định phi tuyến trạng thái. and dispatch the specification to EcoLab for automated journal-grade reporting.