Skip to main content

1.2. Robust and Quantile Regression

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 1.2. Robust and Quantile Regression in 1. Classical Linear and Instrumental Variables Regression provides step-by-step How-To implementation guides for 2 econometric model lessons spanning from Section 1.2.1 to 1.2.2. Full theoretical derivations are available at VietLOD Part 1.2 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 1.2: Robust and Quantile Regression in Stata 18, R 4.x, and Python 3.11+

1.2.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Robust and Quantile Regression specifications within Classical Linear and Instrumental Variables Regression.
  • Mandatory Post-Estimation Diagnostics: Phân tích đòn bẩy hiih_{ii}, khoảng cách Cook's DD, thống kê DFFITS, DFBETAS và kiểm định tính ổn định trọng số hội tụ IRLS.

Core structural specification for Part 1.2:

β^RLM=arg⁡min⁡β∑i=1Nρ(Yi−Xi⊤βσ^)\hat{\beta}_{\text{RLM}} = \arg\min_{\beta} \sum_{i=1}^N \rho\left(\frac{Y_i - X_i^\top \beta}{\hat{\sigma}}\right)

Estimator objective and moment conditions:

β^(τ)=arg⁡min⁡β∈RK∑i=1Nρτ(Yi−Xi⊤β),ρτ(u)=u(τ−I(u<0))\hat{\beta}(\tau) = \arg\min_{\beta \in \mathbb{R}^K} \sum_{i=1}^N \rho_\tau\left(Y_i - X_i^\top \beta\right), \quad \rho_\tau(u) = u\left(\tau - \mathbb{I}(u \lt 0)\right)
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 1.2, researchers should transition to the extended methodological parts in Chapter 1 or apply appropriate instrumental-variable and cluster-robust corrections.

1.2.2. Econometric Model Lessons in Part 1.2​

1.2.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
1.2.1 · Huber Robust Linear Regressionrobust_rlmrreg y x1 x2MASS::rlm(y ~ x1 + x2, data = df)smf.rlm('y ~ x1 + x2', data=df, M=sm.robust.norms.HuberT()).fit()Available
1.2.2 · Conditional Quantile Regressionquantile_regressionqreg y x1 x2, quantile(0.5) vce(robust)quantreg::rq(y ~ x1 + x2, tau = 0.5, data = df)smf.quantreg('y ~ x1 + x2', data=df).fit(q=0.5)Available

1.2.4. Standard Implementation Workflow for Part 1.2​

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

Download the model-specific .csv practice dataset in Part 1.2 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 1.2.1 to 1.2.2 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 Phân tích đòn bẩy hiih_{ii}, khoảng cách Cook's DD, thống kê DFFITS, DFBETAS và kiểm định tính ổn định trọng số hội tụ IRLS and dispatch the specification to EcoLab for automated journal-grade reporting.