Skip to main content

3.1. Binary Choice Models

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 3.1. Binary Choice Models in 3. Discrete Choice and Structural Demand Models provides step-by-step How-To implementation guides for 7 econometric model lessons spanning from Section 3.1.1 to 3.1.7. Full theoretical derivations are available at VietLOD Part 3.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 3.1: Binary Choice Models in Stata 18, R 4.x, and Python 3.11+

3.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Binary Choice Models specifications within Discrete Choice and Structural Demand Models.
  • Mandatory Post-Estimation Diagnostics: Kiểm định tỷ số hợp lý (LR) χ2\chi^2, độ phù hợp Hosmer–Lemeshow, diện tích dưới đường cong ROC, hệ số McFadden Pseudo-R2R^2 và tác động biên trung bình (AME).

Core structural specification for Part 3.1:

P(Yi=1∣Xi)=Λ(Xi⊤β)=11+exp⁡(−Xi⊤β)P(Y_i = 1 \mid X_i) = \Lambda(X_i^\top \beta) = \frac{1}{1 + \exp(-X_i^\top \beta)}

Estimator objective and moment conditions:

θ^MLE=arg⁡max⁡θ∈Θ∑i=1N∑j=1Jyijln⁡Pij(Xi;θ),∂ℓN(θ^)∂θ=∑i=1Nsi(Yi,Xi;θ^)=0\hat{\theta}_{\text{MLE}} = \arg\max_{\theta \in \Theta} \sum_{i=1}^N \sum_{j=1}^J y_{ij}\ln P_{ij}(X_i; \theta), \quad \frac{\partial \ell_N(\hat{\theta})}{\partial \theta} = \sum_{i=1}^N s_i(Y_i, X_i; \hat{\theta}) = 0
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 3.1, researchers should transition to the extended methodological parts in Chapter 3 or apply appropriate instrumental-variable and cluster-robust corrections.

3.1.2. Econometric Model Lessons in Part 3.1​

3.1.1 · logit
3.1.1. Binary Logistic Regression — Logit

Estimates the Binary Logistic Regression — Logit specification within the Binary Choice Models framework by optimizing the structural object...

Explore Guide
3.1.2 · probit
3.1.2. Binary Probit Regression

Estimates the Binary Probit Regression specification within the Binary Choice Models framework by optimizing the structural objective functi...

Explore Guide
3.1.3 · cloglog
3.1.3. Complementary Log-Log Regression

Estimates the Complementary Log-Log Regression specification within the Binary Choice Models framework by optimizing the structural objectiv...

Explore Guide
3.1.4 · heteroskedastic_probit
3.1.4. Heteroskedastic Binary Probit

Separates structural mean effects from group-varying error variance exp — Z*gamma — in binary choice models. Across empirical econometrics, ...

Explore Guide
3.1.5 · bivariate_probit
3.1.5. Bivariate and Recursive Probit

Jointly estimates two correlated binary decisions or a binary outcome with an endogenous binary regressor via FIML. Across empirical econome...

Explore Guide

3.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
3.1.1 · Binary Logistic Regression — Logitlogitlogit y_bin x1 x2, vce(robust) -> margins, dydx(*)glm(y_bin ~ x1 + x2, family = binomial(link = 'logit'), data = df)smf.logit('y_bin ~ x1 + x2', data=df).fit()Available
3.1.2 · Binary Probit Regressionprobitprobit y_bin x1 x2, vce(robust) -> margins, dydx(*)glm(y_bin ~ x1 + x2, family = binomial(link = 'probit'), data = df)smf.probit('y_bin ~ x1 + x2', data=df).fit()Available
3.1.3 · Complementary Log-Log Regressioncloglogcloglog y_bin x1 x2, vce(robust)glm(y_bin ~ x1 + x2, family = binomial(link = 'cloglog'), data = df)smf.glm('y_bin ~ x1 + x2', data=df, family=sm.families.Binomial(sm.families.links.CLogLog())).fit()Available
3.1.4 · Heteroskedastic Binary Probitheteroskedastic_probithetprobit y_bin x1 x2, het(z1) vce(robust)glmx::hetglm(y_bin ~ x1 + x2 | z1, family = binomial(link = 'probit'), data = df)smf.probit('y_bin ~ x1 + x2', data=df).fit(cov_type='HC1')Available
3.1.5 · Bivariate and Recursive Probitbivariate_probitbiprobit (y1 = y2 x1) (y2 = z1 x1), vce(robust)GJRM::gjrm(list(y1 ~ y2 + x1, y2 ~ z1 + x1), margins = c('probit', 'probit'), Model = 'B', data = df)smf.probit('y_bin ~ x1 + x2', data=df).fit(cov_type='HC1')Available

| 3.1.6 · Semiparametric Maximum Score Estimator Manski Horowitz | maximum_score_manski | logit y x1 x2, vce(robust) | optim smoothed Manski score objective | scipy.optimize.minimize Horowitz smoothed maximum score | Available | | 3.1.7 · Skewed Logit Asymmetric Binary Choice Model | scobit_skewed_logit | scobit y x1 x2, vce(robust) | glmx::glmx(y ~ x1 + x2, family = binomial, xlink = 'gosset') | Burr-II Skewed Logit MLE + LR symmetry test (alpha = 1) + average marginal effects | Available |

3.1.4. Standard Implementation Workflow for Part 3.1​

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

Download the model-specific .csv practice dataset in Part 3.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 3.1.1 to 3.1.7 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 tỷ số hợp lý (LR) χ2\chi^2, độ phù hợp Hosmer–Lemeshow, diện tích dưới đường cong ROC, hệ số McFadden Pseudo-R2R^2 và tác động biên trung bình (AME) and dispatch the specification to EcoLab for automated journal-grade reporting.