1. Classical Linear and Instrumental Variables Regression
Chapter 1. Classical Linear and Instrumental Variables Regression provides step-by-step How-To implementation guides for 24 econometric model lessons organized across 4 methodological parts from Section 1.1.1 to 1.4.13. Every guide is synchronized with the full academic lecture at VietLOD Chapter 1 and supports automated cloud execution on EcoLab.
Video Tutorial: How-To Guide for Chapter 1: Classical Linear and Instrumental Variables Regression in Stata 18, R 4.x, and Python 3.11+
1.1. Central Research Question and Core Mathematical Specification
- Central Research Question: How to estimate consistent linear causal effects under heteroskedasticity, outliers, multi-way high-dimensional fixed effects, and endogenous regressors?
- Chapter Architecture: Encompasses
4specialized methodological parts from1.1to1.4and24empirical model lessons validated on Vietnamese datasets from EcoData and Finco.
Core structural equation for Chapter 1:
1.2. Explore the 4 Methodological Parts in Chapter 1
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Classical Least Squares estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Robust and Quantile Regression estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for Classical Instrumental Variables estimators.
Step-by-step How-To guides, tri-engine scripts, and diagnostic workflows for High-Dimensional Fixed Effects and Modern Instrumental Variables estimators.
1.3. Four-Step Workflow for Selecting and Executing Models in Chapter 1
Step 1. Select the Appropriate Methodological Part From 1.1 to 1.4
Match your economic hypothesis and sample structure against the identification requirements in Chapter 1 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: Breusch–Pagan, White, VIF, Ramsey RESET, Kleibergen–Paap rk Wald F, Montiel Olea–Pflueger Effective F, Hansen J.
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.
1.4. Complete Directory of 24 Econometric Model Lessons in Chapter 1
| Section | Econometric Model Lesson Title | Estimator Key | Level | Software Packages Stata · R · Python | Support |
|---|---|---|---|---|---|
| 1.1.1 | 1.1.1. Ordinary Least Squares — OLS | ols | L1 | base Stata · stats + sandwich · statsmodels | Available |
| 1.1.2 | 1.1.2. Weighted Least Squares — WLS | wls | L1 | base Stata · stats · statsmodels | Available |
| 1.1.3 | 1.1.3. Generalized Least Squares — GLS | gls | L1 | base Stata · nlme · statsmodels | Available |
| 1.1.4 | 1.1.4. Feasible Generalized Least Squares — FGLS | fgls | L2 | base Stata · nlme · statsmodels | Available |
| 1.2.1 | 1.2.1. Huber Robust Linear Regression | robust_rlm | L2 | base Stata · MASS · statsmodels | Available |
| 1.2.2 | 1.2.2. Conditional Quantile Regression | quantile_regression | L2 | base Stata · quantreg · statsmodels | Available |
| 1.3.1 | 1.3.1. Two-Stage Least Squares — IV-2SLS | iv_2sls | L1 | base Stata · AER · linearmodels | Available |
| 1.3.2 | 1.3.2. Limited-Information Maximum Likelihood — LIML | iv_liml | L2 | base Stata · AER / ivmodel · linearmodels | Available |
| 1.4.1 | 1.4.1. High-Dimensional Fixed Effects OLS | hdfe_ols | L3 | reghdfe · fixest · pyfixest | Available |
| 1.4.2 | 1.4.2. High-Dimensional Fixed Effects Two-Stage Least Squares | hdfe_iv | L3 | ivreghdfe · fixest · pyfixest | Available |
| 1.4.3 | 1.4.3. Shift-Share Bartik Instrumental Variables | bartik_shift_share_iv | L3 | ssaggregate / ivreg2 · ShiftShareSE · linearmodels | Available |
| 1.4.4 | 1.4.4. Lewbel Heteroskedasticity-Based Instrumental Variables | lewbel_het_iv | L4 | ivreg2h · REndo · linearmodels | Available |
| 1.4.5 | 1.4.5. Control Function Endogeneity Estimator | control_function_iv | L4 | etregress · fixest + boot · statsmodels | Available |
| 1.4.6 | 1.4.6. Instrumental Variables Quantile Regression | iv_quantile | L4 | Stata 18 ivqregress · quantreg · statsmodels | Available |
| 1.1.5 | 1.1.5. Constrained and Restricted Least Squares | constrained_least_squares | L4 | cnsreg · car · scipy | Available |
| 1.1.6 | 1.1.6. Nonlinear Least Squares Gauss Newton | nonlinear_least_squares | L4 | nl · stats · scipy | Available |
| 1.1.7 | 1.1.7. Errors in Variables Reliability Adjusted and Deming Regression | errors_in_variables_eiv | L4 | eivreg · deming · numpy | Available |
| 1.4.7 | 1.4.7. Continuously Updated Generalized Method of Moments | continuously_updated_gmm | L4 | ivregress · gmm · scipy | Available |
| 1.4.8 | 1.4.8. Iterated Generalized Method of Moments | iterated_gmm | L4 | ivregress · gmm · statsmodels | Available |
| 1.4.9 | 1.4.9. Jackknife and Split Sample Instrumental Variables | jive_split_sample_iv | L4 | jive · SteinIV · numpy | Available |
| 1.4.10 | 1.4.10. Reduced Rank Multivariate Regression Anderson | reduced_rank_regression | L4 | canon · rrpack · numpy | Available |
| 1.4.11 | 1.4.11. Fuller Modified Limited Information Maximum Likelihood | fuller_modified_liml | L4 | ivregress · ivmodel · linearmodels | Available |
| 1.4.12 | 1.4.12. Maximum Empirical Likelihood Moment Estimator | empirical_likelihood_owen | L4 | gmm · gmm · scipy | Available |
| 1.4.13 | 1.4.13. Two Step Control Function Regression with Endogeneity Test | control_function_endogenous | L4 | eregress · First-stage lm residual augmentation + sandwich · statsmodels | Available |
1.5. Key Academic References
- Wooldridge(2020). Econometric specification, identification, and asymptotic inference.
- Angrist, J. D, & Pischke, J.-S.(2009). Mostly Harmless Econometrics: An Empiricist's Companion. Princeton University Press.
- Correia(2016). Econometric specification, identification, and asymptotic inference.
- Lewbel(2012). Econometric specification, identification, and asymptotic inference.
- Borusyak, Hull, & Jaravel(2022). Econometric specification, identification, and asymptotic inference.
- Wooldridge, J. M.(2019). Introductory Econometrics: A Modern Approach, 7th ed, Chương 2–8 & 15. Cengage Learning.
- Hansen, B. E.(2022). Econometrics, Chương 4, 7 & 12: Least Squares & Instrumental Variables. Princeton University Press.
- Greene, W. H.(2019). Econometric Analysis, 8th ed, Chương 2–5 & 8. Pearson.
- Cameron, A. C, & Trivedi, P. K.(2022). Microeconometrics Using Stata, 2nd ed, Vol. 1, Chương 3 & 6–7. Stata Press.