Skip to main content

5.4. Long-Run Panel Cointegration and ARDL

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 5.4. Long-Run Panel Cointegration and ARDL in 5. Static, Dynamic and Cross-Sectionally Dependent Panel Econometrics provides step-by-step How-To implementation guides for 5 econometric model lessons spanning from Section 5.4.1 to 5.4.5. Full theoretical derivations are available at VietLOD Part 5.4 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 5.4: Long-Run Panel Cointegration and ARDL in Stata 18, R 4.x, and Python 3.11+

5.4.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Long-Run Panel Cointegration and ARDL specifications within Static, Dynamic and Cross-Sectionally Dependent Panel Econometrics.
  • Mandatory Post-Estimation Diagnostics: Kiểm định đồng tích hợp bảng Pedroni / Kao trước ước lượng, kiểm tra độ nhạy đối với cửa sổ hạt nhân Bartlett/Parzen và so sánh hệ số Pooled vs Group-Mean (FMOLS).

Core structural specification for Part 5.4:

β^GFMOLS=1N∑i=1N[(∑t=1TX~itX~it⊤)−1(∑t=1TX~itYit+−TΔ^εu,i+)]\hat{\beta}_{\text{GFMOLS}} = \frac{1}{N}\sum_{i=1}^N \left[\left(\sum_{t=1}^T \tilde{X}_{it}\tilde{X}_{it}^\top\right)^{-1}\left(\sum_{t=1}^T \tilde{X}_{it} Y_{it}^+ - T\hat{\Delta}_{\varepsilon u, i}^+\right)\right]

Estimator objective and moment conditions:

β^Panel=(∑i=1NX~i⊤WiX~i)−1(∑i=1NX~i⊤WiY~i),Y~it=Yit−θYˉi\hat{\beta}_{\text{Panel}} = \left(\sum_{i=1}^N \tilde{X}_i^\top W_i \tilde{X}_i\right)^{-1}\left(\sum_{i=1}^N \tilde{X}_i^\top W_i \tilde{Y}_i\right), \quad \tilde{Y}_{it} = Y_{it} - \theta \bar{Y}_i
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 5.4, researchers should transition to the extended methodological parts in Chapter 5 or apply appropriate instrumental-variable and cluster-robust corrections.

5.4.2. Econometric Model Lessons in Part 5.4​

5.4.1 · panel_fmols
5.4.1. Panel Fully Modified Least Squares — FMOLS

Estimates the Panel Fully Modified Least Squares — FMOLS specification within the Long-Run Panel Cointegration and ARDL framework by optimiz...

Explore Guide
5.4.2 · panel_dols
5.4.2. Panel Dynamic Least Squares — DOLS

Estimates the Panel Dynamic Least Squares — DOLS specification within the Long-Run Panel Cointegration and ARDL framework by optimizing the ...

Explore Guide
5.4.3 · pmg
5.4.3. Pooled Mean Group Panel ARDL

Constrains long-run cointegrating elasticities to be identical across entities while allowing intercepts, short-run dynamics, adjustment spe...

Explore Guide
5.4.4 · mg
5.4.4. Pesaran-Smith Mean Group Estimator

Estimates separate dynamic regressions per entity and averages long-run and short-run parameters nonparametrically to avoid heterogeneous sl...

Explore Guide
5.4.5 · dfe_panel_ardl
5.4.5. Dynamic Fixed Effects Panel Error-Correction

Pools both long-run equilibrium coefficients and short-run error-correction dynamics across entities while absorbing unit fixed effects. Acr...

Explore Guide

5.4.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
5.4.1 · Panel Fully Modified Least Squares — FMOLSpanel_fmolsxtcointreg y x1 x2, est(fmols)cointReg::cointRegFM(x = df[, c('x1', 'x2')], y = df$y)smf.ols('y_fmols ~ x1_demean + x2_demean', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 2})Available
5.4.2 · Panel Dynamic Least Squares — DOLSpanel_dolsxtcointreg y x1 x2, est(dols) lags(1) leads(1)cointReg::cointRegD(x = df[, c('x1', 'x2')], y = df$y, n.lead = 1, n.lag = 1)smf.ols('y ~ x1 + x2 + dx1_lag1 + dx1_lead1', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 2})Available
5.4.3 · Pooled Mean Group Panel ARDLpmgxtpmg d.y d.x1 d.x2, lr(l.y x1 x2) ec(ec) pmgplm::pmg(y ~ x1 + x2, data = pdata, model = 'pmg')PanelOLS.from_formula('dy ~ 1 + l1_y + x1 + x2 + dx1 + dx2 + EntityEffects', data=pdata).fit()Available
5.4.4 · Pesaran-Smith Mean Group Estimatormgxtmg y x1 x2, robustplm::pmg(y ~ x1 + x2, data = pdata, model = 'mg')smf.ols('y ~ x1 + x2', data=df).fit(cov_type='HC1')Available
5.4.5 · Dynamic Fixed Effects Panel Error-Correctiondfe_panel_ardlxtpmg d.y d.x1 d.x2, lr(l.y x1 x2) ec(ec) dfe cluster(id)fixest::feols(dy ~ l1_y + x1 + x2 + dx1 | id, cluster = ~id, data = df)PanelOLS.from_formula('dy ~ 1 + l1_y + x1 + x2 + dx1 + EntityEffects', data=pdata).fit(cov_type='clustered', cluster_entity=True)Available

5.4.4. Standard Implementation Workflow for Part 5.4​

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

Download the model-specific .csv practice dataset in Part 5.4 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 5.4.1 to 5.4.5 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 đồng tích hợp bảng Pedroni / Kao trước ước lượng, kiểm tra độ nhạy đối với cửa sổ hạt nhân Bartlett/Parzen và so sánh hệ số Pooled vs Group-Mean (FMOLS) and dispatch the specification to EcoLab for automated journal-grade reporting.