Skip to main content

10.1. Cross-Sectional Spatial Regression

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 10.1. Cross-Sectional Spatial Regression in 10. Spatial Econometrics, Conley Standard Errors and Dyadic Networks provides step-by-step How-To implementation guides for 5 econometric model lessons spanning from Section 10.1.1 to 10.1.5. Full theoretical derivations are available at VietLOD Part 10.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 10.1: Cross-Sectional Spatial Regression in Stata 18, R 4.x, and Python 3.11+

10.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Cross-Sectional Spatial Regression specifications within Spatial Econometrics, Conley Standard Errors and Dyadic Networks.
  • Mandatory Post-Estimation Diagnostics: Bảng phân rã Direct, Indirect — Spillover θ\theta — và Total Effects kèm pp-value, kiểm định Wald đồng thời H0:θ=0H_0: \theta = 0, kiểm định Moran's II & LM-Error trên phần dư..

Core structural specification for Part 10.1:

Y=Xβ+WXθ+ε,∂E[Y]∂Xk⊤=INβk+WθkY = X\beta + W X \theta + \varepsilon, \quad \frac{\partial \text{E}[Y]}{\partial X_k^\top} = I_N \beta_k + W \theta_k

Estimator objective and moment conditions:

ℓN(β,ρ,σ2)=−N2ln⁡(2πσ2)+ln⁡det⁡(IN−ρW)−12σ2∥(IN−ρW)Y−Xβ−WXθ∥22\ell_N(\beta, \rho, \sigma^2) = -\frac{N}{2}\ln(2\pi\sigma^2) + \ln\det\left(I_N - \rho W\right) - \frac{1}{2\sigma^2}\| (I_N - \rho W)Y - X\beta - WX\theta \|_2^2
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 10.1, researchers should transition to the extended methodological parts in Chapter 10 or apply appropriate instrumental-variable and cluster-robust corrections.

10.1.2. Econometric Model Lessons in Part 10.1​

10.1.1 · slx_spatial_x
10.1.1. Spatial Lag of X Local Spillovers Model

Models local spatial spillovers directly through spatially lagged covariates W*X, cleanly separating direct effects beta from indirect neigh...

Explore Guide
10.1.2 · sar_spatial_lag
10.1.2. Spatial Autoregressive Lag — SAR

Estimates the Spatial Autoregressive Lag — SAR specification within the Cross-Sectional Spatial Regression framework by optimizing the struc...

Explore Guide
10.1.3 · sem_spatial_error
10.1.3. Spatial Error Regression — SEM

Estimates the Spatial Error Regression — SEM specification within the Cross-Sectional Spatial Regression framework by optimizing the structu...

Explore Guide
10.1.4 · sdm_spatial_durbin
10.1.4. Spatial Durbin Regression — SDM

Estimates the Spatial Durbin Regression — SDM specification within the Cross-Sectional Spatial Regression framework by optimizing the struct...

Explore Guide
10.1.5 · sarar_sac_spatial
10.1.5. Combined Spatial Autoregressive Confounded Error SARAR Model

Jointly estimates endogenous outcome spillovers rho*W*Y and spatially autocorrelated unobserved shocks u = lambda*W*u + e via Kelejian-Pruch...

Explore Guide

10.1.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
10.1.1 · Spatial Lag of X Local Spillovers Modelslx_spatial_xspregress y x1 x2, gs2sls ivarlag(W: x1 x2)spatialreg::lmSLX(y ~ x1 + x2, data = df, listw = lw)spreg.OLS(y, X, w=w, slx_lags=1)Available
10.1.2 · Spatial Autoregressive Lag — SARsar_spatial_lagspregress y x1 x2, ml dvarlag(W)spatialreg::lagsarlm(y ~ x1 + x2, data = df, listw = lw)spreg.ML_Lag(y, X, w=w)Available
10.1.3 · Spatial Error Regression — SEMsem_spatial_errorspregress y x1 x2, ml errorlag(W)spatialreg::errorsarlm(y ~ x1 + x2, data = df, listw = lw)spreg.ML_Error(y, X, w=w)Available
10.1.4 · Spatial Durbin Regression — SDMsdm_spatial_durbinspregress y x1 x2, ml dvarlag(W) ivarlag(W: x1 x2) -> estat impactspatialreg::lagsarlm(y ~ x1 + x2, data = df, listw = lw, Durbin = TRUE)spreg.ML_Lag(y, X, w=w, slx_lags=1)Available
10.1.5 · Combined Spatial Autoregressive Confounded Error SARAR Modelsarar_sac_spatialspregress y x1 x2, gs2sls dvarlag(W) errorlag(W) hetspatialreg::sacsarlm(y ~ x1 + x2, data = df, listw = lw)spreg.GM_Combo_Het(y, X, w=w)Available

10.1.4. Standard Implementation Workflow for Part 10.1​

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

Download the model-specific .csv practice dataset in Part 10.1 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 10.1.1 to 10.1.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 Bảng phân rã Direct, Indirect — Spillover θ\theta — và Total Effects kèm pp-value, kiểm định Wald đồng thời H0:θ=0H_0: \theta = 0, kiểm định Moran's II & LM-Error trên phần dư. and dispatch the specification to EcoLab for automated journal-grade reporting.