12.1. Simultaneous Equations and Structural Demand Systems
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 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:
Estimator objective and moment conditions:
12.1.2. Econometric Model Lessons in Part 12.1
Estimates the Zellner Seemingly Unrelated Regressions — SUR specification within the Simultaneous Equations and Structural Demand Systems fr...
Estimates the Three-Stage Least Squares Simultaneous System — 3SLS specification within the Simultaneous Equations and Structural Demand Sys...
Estimates the Dynamic System Generalized Method of Moments specification within the Simultaneous Equations and Structural Demand Systems fra...
Simultaneously estimates G >= 3 household/sector budget-share equations imposing microeconomic adding-up, degree-zero price homogeneity, ...
12.1.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+
| Section & Model Title | Estimator Key | Stata 18 MP Syntax | R 4.x Syntax | Python 3.11+ Syntax | Support |
|---|---|---|---|---|---|
| 12.1.1 · Zellner Seemingly Unrelated Regressions — SUR | sur | sureg (y1 x1 x2) (y2 x1 z2), corr | systemfit::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 — 3SLS | three_stage_ls | reg3 (y1 y2 x1) (y2 y1 z1), 3sls | systemfit::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 Moments | system_gmm | gmm (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 System | quaids_demand_system | demandsys 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 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.