Skip to main content

5.5. Second-Generation Cross-Sectionally Dependent Panels

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 5.5. Second-Generation Cross-Sectionally Dependent Panels in 5. Static, Dynamic and Cross-Sectionally Dependent Panel Econometrics provides step-by-step How-To implementation guides for 11 econometric model lessons spanning from Section 5.5.1 to 5.5.11. Full theoretical derivations are available at VietLOD Part 5.5 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 5.5: Second-Generation Cross-Sectionally Dependent Panels in Stata 18, R 4.x, and Python 3.11+

5.5.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Second-Generation Cross-Sectionally Dependent Panels specifications within Static, Dynamic and Cross-Sectionally Dependent Panel Econometrics.
  • Mandatory Post-Estimation Diagnostics: Thống kê CIPS và CIPS, giá trị tới hạn chính xác theo cặp kích thước mẫu NN và TT ở mức 1%,5%,10%1\%, 5\%, 10\% — không chặn / có chặn / có xu thế, phân bố tit_i CADF..

Core structural specification for Part 5.5:

ΔYit=ai+biYi,t−1+ciYˉt−1+∑j=0pdijΔYˉt−j+∑j=1pδijΔYi,t−j+eit,CIPS=1N∑i=1Nti(N,T)\Delta Y_{it} = a_i + b_i Y_{i,t-1} + c_i \bar{Y}_{t-1} + \sum_{j=0}^p d_{ij}\Delta \bar{Y}_{t-j} + \sum_{j=1}^p \delta_{ij}\Delta Y_{i,t-j} + e_{it}, \quad \text{CIPS} = \frac{1}{N}\sum_{i=1}^N t_i(N, T)

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

5.5.2. Econometric Model Lessons in Part 5.5​

5.5.1 · pesaran_cips
5.5.1. Pesaran CIPS Second-Generation Panel Unit-Root Test

Filters unobserved common factors via cross-sectional averages of levels and differences in entity CADF regressions. Across empirical econom...

Explore Guide
5.5.2 · westerlund_coint
5.5.2. Westerlund Error-Correction Panel Cointegration

Tests second-generation panel cointegration via structural error-correction speed without imposing common-factor restrictions. Across empiri...

Explore Guide
5.5.3 · cce_mg
5.5.3. Common Correlated Effects Mean Group

Projects out unobserved common global shocks using cross-sectional time averages of dependent and independent variables in entity-specific r...

Explore Guide
5.5.4 · ccep
5.5.4. Common Correlated Effects Pooled Estimator

Pools homogeneous structural slopes after projecting each entity orthogonal to cross-sectional time averages to absorb heterogeneous loading...

Explore Guide
5.5.5 · cs_ardl
5.5.5. Cross-Sectionally Augmented Panel ARDL

Augments dynamic entity ARDL regressions with contemporaneous and lagged cross-sectional averages to recover consistent long-run effects und...

Explore Guide

5.5.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.5.1 · Pesaran CIPS Second-Generation Panel Unit-Root Testpesaran_cipsxtcips y, maxlags(2) bglags(2)plm::cipstest(pdata$y, lags = 2, type = 'drift')smf.ols('dy ~ l1_y + mean_l1_y + mean_dy', data=df).fit()Available
5.5.2 · Westerlund Error-Correction Panel Cointegrationwesterlund_cointxtwest y x1 x2, lags(1) leads(0) lrwindow(3)plm::plm(dy ~ l1_y + l1_x1 + dx1, data = pdata, model = 'within')PanelOLS.from_formula('dy ~ 1 + l1_y + l1_x1 + dx1 + EntityEffects', data=pdata).fit()Available
5.5.3 · Common Correlated Effects Mean Groupcce_mgxtdcce2 y x1 x2, cr(y x1 x2) cr_lags(0)plm::pcce(y ~ x1 + x2, data = pdata, model = 'mg')smf.ols('y ~ x1 + x2 + mean_y + mean_x1 + mean_x2', data=df).fit()Available
5.5.4 · Common Correlated Effects Pooled Estimatorccepxtdcce2 y x1 x2, cr(y x1 x2) pooled(x1 x2) pooledvce(nw)plm::pcce(y ~ x1 + x2, data = pdata, model = 'p')PanelOLS.from_formula('y ~ 1 + x1 + x2 + mean_y + mean_x1 + EntityEffects', data=pdata).fit()Available
5.5.5 · Cross-Sectionally Augmented Panel ARDLcs_ardlxtdcce2 d.y, lr(l.y x1 x2) lr_options(ardl) cr(y x1 x2) cr_lags(2)plm::pcce(dy ~ l1_y + x1 + x2, data = pdata, model = 'mg')smf.ols('dy ~ l1_y + x1 + x2 + mean_dy + mean_x1', data=df).fit()Available

| 5.5.6 · Swamy Panel Random Coefficients Model | swamy_random_coefficients | xtrc y x1 x2 | plm::pvcm(model = 'random') | Swamy empirical-Bayes GLS random coefficients + homogeneity chi2 | Available | | 5.5.7 · Grouped Fixed Effects Panel Estimator Bonhomme Manresa | grouped_fixed_effects_bonhomme | xtreg y x1 x2 i.year, fe vce(cluster id) | phtt / iterative k-means GFE | Iterative KMeans + group-by-time interactive FE solver | Available | | 5.5.8 · Pedroni and Kao Residual Panel Cointegration Model | pedroni_kao_panel_coint | xtcointtest pedroni y x1 x2 | plm::purtest(residuals(fit_fe), test = 'ips') | Long-run panel cointegrating regression + Kao/Pedroni residual ADF | Available | | 5.5.9 · Im Pesaran Shin and Levin Lin Chu Panel Unit Root Model | ips_llc_panel_unit_root | xtunitroot ips y, lags(1) | plm::purtest(test = 'ips') + plm::purtest(test = 'levinlin') | IPS standardized W_tbar + LLC pooled ADF panel regression | Available | | 5.5.10 · Bai Interactive Fixed Effects Panel Factor Estimator | interactive_fe_bai | regife y x1 x2, factors(entity year, 1) vce(cluster entity) | phtt::Eup(y ~ x1 + x2) / gsynth::interFE | Bai (2009) alternating SVD factor extraction + analytical bias-corrected covariance | Available | | 5.5.11 · Chudik Pesaran Dynamic Common Correlated Effects Mean Group | chudik_pesaran_dccemg | xtdcce2 y x1 x2, cr(y x1 x2) cr_lags(1) | plm::pcce(y ~ x1 + x2, data = pdata, model = 'mg') | Chudik-Pesaran (2015) lagged cross-sectional average CCEP / Mean-Group estimator | Available |

5.5.4. Standard Implementation Workflow for Part 5.5​

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

Download the model-specific .csv practice dataset in Part 5.5 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.5.1 to 5.5.11 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 Thống kê CIPS và CIPS, giá trị tới hạn chính xác theo cặp kích thước mẫu NN và TT ở mức 1%,5%,10%1\%, 5\%, 10\% — không chặn / có chặn / có xu thế, phân bố tit_i CADF. and dispatch the specification to EcoLab for automated journal-grade reporting.