Skip to main content

12.1. Simultaneous Equations and Structural Demand Systems

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 12.1. Simultaneous Equations and Structural Demand Systems in 12. Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics provides step-by-step How-To implementation guides for 5 econometric model lessons spanning from Section 12.1.1 to 12.1.5. Full theoretical derivations are available at VietLOD Part 12.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 12.1: Simultaneous Equations and Structural Demand Systems in Stata 18, R 4.x, and Python 3.11+

12.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Simultaneous Equations and Structural Demand Systems specifications within Simultaneous Systems, Demand Systems, Bayesian and Machine Learning Econometrics.
  • Mandatory Post-Estimation Diagnostics: Kiểm định nhân tử Lagrange của Breusch–Pagan cho tính độc lập chéo của ma trận hiệp phương sai phần dư giữa các phương trình H0:σmn=0,∀m≠nH_0: \sigma_{mn} = 0, \forall m \neq n và kiểm định Wald cho các ràng buộc hệ số xuyên phương trình.

Core structural specification for Part 12.1:

β^SUR=[X⊤(Σ^−1⊗IN)X]−1X⊤(Σ^−1⊗IN)Y\hat{\beta}_{\text{SUR}} = \left[X^\top (\hat{\Sigma}^{-1} \otimes I_N) X\right]^{-1} X^\top (\hat{\Sigma}^{-1} \otimes I_N) Y

Estimator objective and moment conditions:

θ^SYS=arg⁡min⁡θ∈ΘgN(θ)⊤(Σ^−1⊗PZ)gN(θ),p(θ∣Y,X)∝L(Y∣X,θ) π(θ)\hat{\theta}_{\text{SYS}} = \arg\min_{\theta \in \Theta} g_N(\theta)^\top \left(\hat{\Sigma}^{-1} \otimes P_Z\right) g_N(\theta), \quad p(\theta \mid Y, X) \propto L(Y \mid X, \theta)\,\pi(\theta)
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 12.1, researchers should transition to the extended methodological parts in Chapter 12 or apply appropriate instrumental-variable and cluster-robust corrections.

12.1.2. Econometric Model Lessons in Part 12.1​

12.1.1 · sur
12.1.1. Zellner Seemingly Unrelated Regressions — SUR

Estimates the Zellner Seemingly Unrelated Regressions — SUR specification within the Simultaneous Equations and Structural Demand Systems fr...

Explore Guide
12.1.2 · three_stage_ls
12.1.2. Three-Stage Least Squares Simultaneous System — 3SLS

Estimates the Three-Stage Least Squares Simultaneous System — 3SLS specification within the Simultaneous Equations and Structural Demand Sys...

Explore Guide
12.1.3 · system_gmm
12.1.3. Dynamic System Generalized Method of Moments

Estimates the Dynamic System Generalized Method of Moments specification within the Simultaneous Equations and Structural Demand Systems fra...

Explore Guide
12.1.4 · quaids_demand_system
12.1.4. Banks-Blundell-Lewbel Quadratic Almost Ideal Demand System

Simultaneously estimates G >= 3 household/sector budget-share equations imposing microeconomic adding-up, degree-zero price homogeneity, ...

Explore Guide

12.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
12.1.1 · Zellner Seemingly Unrelated Regressions — SURsursureg (y1 x1 x2) (y2 x1 z2), corrsystemfit::systemfit(list(eq1 = y1 ~ x1 + x2, eq2 = y2 ~ x1 + z2), method = 'SUR', data = df)SUR.from_formula({'eq1': 'y1 ~ 1 + x1 + x2', 'eq2': 'y2 ~ 1 + x1 + z2'}, data=df).fit()Available
12.1.2 · Three-Stage Least Squares Simultaneous System — 3SLSthree_stage_lsreg3 (y1 y2 x1) (y2 y1 z1), 3slssystemfit::systemfit(list(eq1 = y1 ~ y2 + x1, eq2 = y2 ~ y1 + z1), method = '3SLS', inst = ~ x1 + z1, data = df)IV3SLS.from_formula({'eq1': 'y1 ~ 1 + x1 + [y2 ~ z1]', 'eq2': 'y2 ~ 1 + z1 + [y1 ~ x1]'}, data=df).fit()Available
12.1.3 · Dynamic System Generalized Method of Momentssystem_gmmgmm (eq1: y1 - {b0} - {b1}*y2 - {b2}*x1) (eq2: y2 - {g0} - {g1}*y1 - {g2}*z1), instruments(x1 z1) wmatrix(robust)gmm::sysGmm(list(y1 ~ y2 + x1, y2 ~ y1 + z1), list(~ x1 + z1, ~ x1 + z1), data = df)IVSystemGMM.from_formula({'eq1': 'y1 ~ 1 + x1 + [y2 ~ z1]', 'eq2': 'y2 ~ 1 + z1 + [y1 ~ x1]'}, data=df).fit()Available
12.1.4 · Banks-Blundell-Lewbel Quadratic Almost Ideal Demand Systemquaids_demand_systemdemandsys quaids w1 w2 w3, prices(p1 p2 p3) expenditure(exp_tot)micEconAids::aidsEst(c('p1', 'p2', 'p3'), c('w1', 'w2', 'w3'), 'exp_tot', data = df)SUR.from_formula(quaids_eqs, data=df).fit(cov_type='robust')Available

| 12.1.5 · Simulated Method of Moments and Indirect Inference McFadden Gourieroux Monfort | simulated_method_of_moments_smm | gmm (y - {b0} - {xb: x1 x2}), instruments(x1 x2) vce(robust) | momentfit::gmmFit / Indirect Inference simulator | CRN Simulated Method of Moments BFGS + (1 + 1/S) covariance adjustment | Available |

12.1.4. Standard Implementation Workflow for Part 12.1​

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

Download the model-specific .csv practice dataset in Part 12.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 12.1.1 to 12.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 Kiểm định nhân tử Lagrange của Breusch–Pagan cho tính độc lập chéo của ma trận hiệp phương sai phần dư giữa các phương trình H0:σmn=0,∀m≠nH_0: \sigma_{mn} = 0, \forall m \neq n và kiểm định Wald cho các ràng buộc hệ số xuyên phương trình and dispatch the specification to EcoLab for automated journal-grade reporting.