3.1. Binary Choice Models
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) , độ phù hợp Hosmer–Lemeshow, diện tích dưới đường cong ROC, hệ số McFadden Pseudo- và tác động biên trung bình (AME).
Core structural specification for Part 3.1:
Estimator objective and moment conditions:
3.1.2. Econometric Model Lessons in Part 3.1
Estimates the Binary Logistic Regression — Logit specification within the Binary Choice Models framework by optimizing the structural object...
Estimates the Binary Probit Regression specification within the Binary Choice Models framework by optimizing the structural objective functi...
Estimates the Complementary Log-Log Regression specification within the Binary Choice Models framework by optimizing the structural objectiv...
Separates structural mean effects from group-varying error variance exp — Z*gamma — in binary choice models. Across empirical econometrics, ...
Jointly estimates two correlated binary decisions or a binary outcome with an endogenous binary regressor via FIML. Across empirical econome...
3.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 |
|---|---|---|---|---|---|
| 3.1.1 · Binary Logistic Regression — Logit | logit | logit 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 Regression | probit | probit 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 Regression | cloglog | cloglog 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 Probit | heteroskedastic_probit | hetprobit 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 Probit | bivariate_probit | biprobit (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) , độ phù hợp Hosmer–Lemeshow, diện tích dưới đường cong ROC, hệ số McFadden Pseudo- và tác động biên trung bình (AME) and dispatch the specification to EcoLab for automated journal-grade reporting.