Skip to main content

3. Discrete Choice and Structural Demand Models

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Chapter 3. Discrete Choice and Structural Demand Models provides step-by-step How-To implementation guides for 18 econometric model lessons organized across 5 methodological parts from Section 3.1.1 to 3.5.2. Every guide is synchronized with the full academic lecture at VietLOD Chapter 3 and supports automated cloud execution on EcoLab.

Video Tutorial: How-To Guide for Chapter 3: Discrete Choice and Structural Demand Models in Stata 18, R 4.x, and Python 3.11+

3.1. Central Research Question and Core Mathematical Specification​

  • Central Research Question: How to model discrete economic decisions across binary, multinomial, ordered, random-parameter, and structural differentiated-product demand settings?
  • Chapter Architecture: Encompasses 5 specialized methodological parts from 3.1 to 3.5 and 18 empirical model lessons validated on Vietnamese datasets from EcoData and Finco.

Core structural equation for Chapter 3:

P(Yi=j∣Xi)=exp⁡(Xij⊤β)∑m=1Jexp⁡(Xim⊤β)P(Y_i = j \mid X_i) = \frac{\exp(X_{ij}^\top \beta)}{\sum_{m=1}^J \exp(X_{im}^\top \beta)}
Methodological Scope Boundary:Linear probability models can predict probabilities outside the unit interval, while standard Multinomial Logit fails when the Independence of Irrelevant Alternatives assumption is violated. Mandatory diagnostics for this chapter include: Likelihood Ratio Chi2, Hosmer–Lemeshow, Hausman–McFadden IIA Test, Brant Parallel Odds Test, Average Marginal Effects (AME).

3.2. Explore the 5 Methodological Parts in Chapter 3​

7 Lessons
3.1. Binary Choice Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Binary Choice Models estimators.

Explore Guide
5 Lessons
3.2. Multinomial Choice Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Multinomial Choice Models estimators.

Explore Guide
3 Lessons
3.3. Ordered Choice Models

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Ordered Choice Models estimators.

Explore Guide
1 Lessons
3.4. Random-Parameters Mixed Logit

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Random-Parameters Mixed Logit estimators.

Explore Guide
2 Lessons
3.5. Panel Discrete Choice and Structural Demand

Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Panel Discrete Choice and Structural Demand estimators.

Explore Guide

3.3. Four-Step Workflow for Selecting and Executing Models in Chapter 3​

Step 1. Select the Appropriate Methodological Part From 3.1 to 3.5

Match your economic hypothesis and sample structure against the identification requirements in Chapter 3 to select the appropriate A.B.C model lesson.

Step 2. Prepare Standardized Datasets From EcoData or Finco

Download the standardized .csv practice file for your target estimator from /src/ecoaz/data/ or extract live empirical series from EcoData and Finco.

Step 3. Estimate Parameters and Run Diagnostics in Stata 18, R 4.x, and Python 3.11+

Execute the tri-engine scripts provided in each model guide and verify the mandatory post-estimation diagnostics: Likelihood Ratio Chi2, Hosmer–Lemeshow, Hausman–McFadden IIA Test, Brant Parallel Odds Test, Average Marginal Effects (AME).

Step 4. Verify Three-Software Convergence and Export Publication Tables on EcoLab

Confirm numerical convergence across Stata, R, and Python using the three-panel empirical figure and generate journal-grade tables on EcoLab.

3.4. Complete Directory of 18 Econometric Model Lessons in Chapter 3​

SectionEconometric Model Lesson TitleEstimator KeyLevelSoftware Packages Stata · R · PythonSupport
3.1.13.1.1. Binary Logistic Regression — LogitlogitL1base Stata · stats + margins · statsmodelsAvailable
3.1.23.1.2. Binary Probit RegressionprobitL1base Stata · stats + margins · statsmodelsAvailable
3.1.33.1.3. Complementary Log-Log RegressioncloglogL2base Stata · stats · statsmodelsAvailable
3.1.43.1.4. Heteroskedastic Binary Probitheteroskedastic_probitL3base Stata hetprobit · glmx · statsmodelsAvailable
3.1.53.1.5. Bivariate and Recursive Probitbivariate_probitL3base Stata biprobit · GJRM · statsmodels / scipyAvailable
3.2.13.2.1. Multinomial Logit ChoicemnlogitL1base Stata · nnet · statsmodelsAvailable
3.2.23.2.2. McFadden Conditional Logitconditional_logitL2base Stata · survival / mlogit · statsmodelsAvailable
3.2.33.2.3. Nested Logit Hierarchical Choicenested_logitL2base Stata nlogit · mlogit · statsmodelsAvailable
3.2.43.2.4. Multinomial Probit Unrestricted Covariancemultinomial_probitL4base Stata mprobit · MNP · statsmodelsAvailable
3.3.13.3.1. Ordered Logistic Choiceordered_logitL1base Stata · MASS · statsmodelsAvailable
3.3.23.3.2. Ordered Probit Choiceordered_probitL1base Stata · MASS · statsmodelsAvailable
3.4.13.4.1. Random-Parameters Mixed Logitmixed_logitL4Stata 18 cm · mlogit · statsmodels / scipyAvailable
3.5.13.5.1. Chamberlain Conditional Fixed Effects and Bias-Corrected Panel Logitpanel_logit_fe_creL4base Stata xtlogit · bife / fixest · statsmodelsAvailable
3.5.23.5.2. Berry and BLP Differentiated-Product Market-Share Demand IVberry_blp_logit_ivL4blp / ivreghdfe · fixest / BLPestimatoR · pyblp / linearmodelsAvailable

| 3.1.6 | 3.1.6. Semiparametric Maximum Score Estimator Manski Horowitz | maximum_score_manski | L4 | logit · stats / sandwich · scipy | Available | | 3.1.7 | 3.1.7. Skewed Logit Asymmetric Binary Choice Model | scobit_skewed_logit | L4 | scobit · glmx · scipy | Available | | 3.2.5 | 3.2.5. Plackett Luce Rank Ordered Exploded Logit | rank_ordered_exploded_logit | L4 | cmrologit · PlackettLuce · scipy | Available | | 3.3.3 | 3.3.3. Anderson Stereotype Dimensional Logistic Model | stereotype_logit_anderson | L4 | slogit · VGAM · scipy | Available |

3.5. Key Academic References​

  • McFadden, D.(1974). Conditional logit analysis of qualitative choice behavior. In P. Zarembka, Ed, Frontiers in Econometrics, pp. 105–142. Academic Press.
  • Train, K. E.(2009). Discrete Choice Methods with Simulation, 2nd ed.. Cambridge University Press.
  • Chamberlain(1980). Econometric specification, identification, and asymptotic inference.
  • Berry, Levinsohn, & Pakes(1995). Econometric specification, identification, and asymptotic inference.
  • Wooldridge, J. M.(2010). Econometric Analysis of Cross Section and Panel Data, 2nd ed, Chương 15–16: Binary, Multinomial and Ordered Response Models. MIT Press.
  • Cameron, A. C, & Trivedi, P. K.(2022). Microeconometrics Using Stata, 2nd ed, Vol. 2, Chương 16–18: Nonlinear, Binary, Multinomial and Ordered Models. Stata Press.
  • Greene, W. H.(2019). Econometric Analysis, 8th ed, Chương 17–18: Discrete Choice Models. Pearson.
  • Hansen, B. E.(2022). Econometrics, Chương 25: Binary Choice. Princeton University Press.