Skip to main content

21. Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọn

Verified Environments & Platforms:Academic FreeResearcher ProInstitutional VIP

This practical how-to guide presents the theoretical foundations, structural mathematical equations, detailed breakdown of 3 specialized lessons, and multi-platform replication workflows for 21. Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọn from the textbook Empirical Development Economics, with direct cross-references to the authoritative source material at https://sachktl.tnsai.vn/vi/fsrak15u1/c21/.

Empirical Development Economics21. Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọnCausal Inference and Empirical Policy Impact Evaluation · 3 Detailed LessonsStata 18 MPR 4.xPython 3.11+TNSAI Ecosystem

1. Methodological Foundations, Mathematical Specification, and Identification​

Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọn Chào mừng các bạn sinh viên đến với chuỗi bài học chuyên sâu về một trong những vấn đề kinh tế lượng phổ biến và quan trọng nhất trong phân tích dữ liệu vi mô: sai lệch chọn mẫu . Trong thực tế, hiếm khi chúng ta có được một mẫu dữ liệu hoàn toàn ngẫu nhiên. Ví dụ, khi nghiên cứu về các yếu tố ảnh hưởng đến tiền lương, chúng ta chỉ có thể thu thập dữ liệu từ những người có việc làm. Vậy những người không có việc làm thì sao? Liệu việc bỏ qua họ có khiến kết quả phân tích của chúng ta bị sai lệch không? Câu trả lời là rất có thể!

1.1. Structural Equations and Representative Estimator​

τATT=E[Yi(1)−Yi(0)∣Di=1]=E[E[Yit−Yi,t−1∣Di=1]−E[Yit−Yi,t−1∣Di=0]][1]\tau_{\text{ATT}} = \mathbb{E}\left[Y_i(1) - Y_i(0) \mid D_i = 1\right] = \mathbb{E}\left[\mathbb{E}[Y_{it} - Y_{i,t-1} \mid D_i=1] - \mathbb{E}[Y_{it} - Y_{i,t-1} \mid D_i=0]\right] \tag*{[1]} Yit=αi+λt+∑k≠−1δk⋅I(t−Gi=k)+Xit′β+εit[2]Y_{it} = \alpha_i + \lambda_t + \sum_{k \neq -1} \delta_k \cdot \mathbb{I}(t - G_i = k) + \mathbf{X}_{it}'\boldsymbol{\beta} + \varepsilon_{it} \tag*{[2]}

1.2. Core Identification Assumptions and Applicability Conditions​

  1. Conditional parallel trends ensure the comparison group validly represents the counterfactual trajectory of treated units in the absence of intervention.
  2. No anticipation prior to treatment onset and common support overlap 0<P(Di=1∣Xi)<10 < P(D_i=1 \mid \mathbf{X}_i) < 1 are required for point identification of τATT\tau_{\text{ATT}}.
  3. The Stable Unit Treatment Value Assumption (SUTVA) rules out unmodeled spillover interference across treated and control units.
Methodological Scope Boundary:Conventional Two-Way Fixed Effects (TWFE) regressions suffer from negative weighting bias under staggered adoption and heterogeneous treatment effects; use Callaway-Sant'Anna or Sun-Abraham estimators instead.

2. Lesson-by-Lesson Academic Breakdown​

2.1. Hiểu rõ vấn đề sai lệch chọn mẫu và nền tảng lý thuyết​

Chào mừng các bạn đã đến với bài học đầu tiên trong chuỗi bài về sai lệch chọn mẫu. Trong kinh tế lượng nhập môn, chúng ta thường bắt đầu với giả định rằng mình có một mẫu dữ liệu ngẫu nhiên từ tổng thể. Tuy nhiên, trong thực tế, đặc biệt là trong kinh tế học phát triển, giả định này hiếm khi được thỏa mãn. Hãy tưởng tượng chúng ta muốn nghiên cứu lợi tức của giáo dục đối với thu nhập ở Nam Phi. Một cách tiếp cận đơn giản là thu thập dữ liệu và chạy một mô hình hồi quy OLS.

Key Methodological Sub-Topics Covered in This Lesson:

  • 1. Đặt vấn đề: Mẫu được chọn lọc là gì?

  • 2. Nền tảng lý thuyết của mô hình lựa chọn

  • 2.1. Hệ phương trình lựa chọn

  • 2.2. Nguồn gốc của sai lệch

  • 2.3. Hướng giải quyết: Mô hình hóa sự tương quan

  • Tổng kết bài học

  • Analytical Environments: Stata 18 MP, R 4.x, Python 3.11+ · Authoritative Source: Read Full Original Lesson on SachKTL

2.2. Trực giác kinh tế, ví dụ ứng dụng và các mô hình liên quan​

Chào mừng các bạn quay trở lại bài học thứ hai. Trong bài học trước, chúng ta đã cùng nhau xây dựng một nền tảng toán học vững chắc, hiểu được rằng sai lệch chọn mẫu về bản chất là một vấn đề của biến bị bỏ sót, với "kẻ giấu mặt" chính là Tỷ số Mills Nghịch đảo. Lý thuyết toán học đã vững, nhưng điều gì thực sự diễn ra đằng sau những công thức đó? Làm thế nào để chúng ta xây dựng được một trực giác kinh tế để nhận biết và lý giải vấn đề này trong thực tế?

Key Methodological Sub-Topics Covered in This Lesson:

  • 1. Khi nào lựa chọn mẫu là một vấn đề? Một góc nhìn trực quan

  • 2. Ứng dụng: Lựa chọn việc làm và thu nhập ở Nam Phi

  • 3. Phân biệt: Mô hình giải pháp góc và lựa chọn mẫu

  • Tổng kết bài học

  • Analytical Environments: Stata 18 MP, R 4.x, Python 3.11+ · Authoritative Source: Read Full Original Lesson on SachKTL

2.3. Hướng dẫn thực hành mô hình Heckman với Stata​

Bài 3: Hướng dẫn thực hành mô hình Heckman với Stata Chào mừng các bạn đến với bài học cuối cùng và cũng là bài thực hành quan trọng nhất trong chuỗi bài về sai lệch chọn mẫu! Trong hai bài học vừa qua, chúng ta đã cùng nhau xây dựng một nền tảng lý thuyết vững chắc và một trực giác kinh tế sâu sắc về vấn đề này. Các bạn đã hiểu tại sao việc chỉ phân tích trên một mẫu được chọn lọc có thể dẫn đến sai lệch và logic đằng sau phương pháp hiệu chỉnh của Heckman. Giờ là lúc chúng ta biến những lý thuyết đó thành kỹ năng thực hành cụ thể.

Key Methodological Sub-Topics Covered in This Lesson:

  • 1. Tóm tắt quy trình phân tích

  • 2. Hướng dẫn thực hành từng bước với Stata

  • Tổng kết và các bước tiếp theo

  • Analytical Environments: Stata 18 MP · Authoritative Source: Read Full Original Lesson on SachKTL

3. Step-by-Step Empirical Implementation Workflow​

1. Formulate the Research Question and Prepare Data on EcoData & Finco

Define the dependent variable, core explanatory variables, and control covariates aligned with 21. Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọn. Extract standardized Vietnamese empirical series from EcoData or Finco, and screen for missing observations and extreme outliers.

2. Conduct Descriptive Profiling, Correlation Analysis, and Pre-Estimation Checks

Examine empirical distributions, construct summary statistics tables, and evaluate collinearity using pairwise correlation matrices and Variance Inflation Factors (VIF).

3. Estimate the Model Across Stata 18 MP, R 4.x, and Python 3.11+

Execute the parameter estimation scripts matching the structural equations in Section 1.1 while cross-checking theoretical derivations at SachKTL.

4. Perform Post-Estimation Diagnostics and Robust Variance Correction

Test for heteroskedasticity, serial correlation, Ramsey RESET functional form misspecification, and regressor endogeneity. Apply White HC1 or cluster-robust standard errors for valid inference.

5. Format Journal-Grade Tables and Cross-Verify on EcoLab

Report point estimates, standard errors in parentheses, and statistical significance stars following APA 7th / AER Booktabs standards, or automate the entire reporting pipeline on EcoLab and VietLOD.

4. Multi-Platform Implementation Scripts in Stata, R, and Python​

* Ước lượng tác động nhân quả với DiD, Event Study và Propensity Score Matching
version 18.0
clear all
set more off
import delimited "sachktl_causal_ecodata.csv", clear encoding("utf-8")

* 1. Ước lượng Difference-in-Differences hai chiều và kiểm định xu hướng song song
xtset id year
xtdidregress (y x1 x2) (treated_post), group(id) time(year) vce(cluster id)
estat trendplots
estat ptrends

* 2. Ước lượng ghép cặp điểm xu hướng (PSM) và nghịch đảo xác suất trọng số (IPWRA)
teffects psmatch (y) (treat x1 x2 x3, probit), atet vce(iid)
teffects ipwra (y x1 x2) (treat x1 x2 x3, logit), atet

5. Post-Estimation Diagnostic and Interpretation Guide​

Diagnostic CriterionNull Hypothesis H0H_0Benchmark ThresholdCorrective Action When H0H_0 Is Rejected
HeteroskedasticityConstant error variance Var(εi)=σ2\text{Var}(\varepsilon_i) = \sigma^2p-value<0.05p\text{-value} < 0.05 rejects H0H_0Apply vce(robust), vcovHC(HC1), or FGLS/WLS weighted estimation
MulticollinearityNo severe linear dependence among regressorsVIF<10\text{VIF} < 10 acceptableDrop redundant covariates, center interactions, or apply LASSO/Ridge regularization
Ramsey RESET Functional FormNo omitted nonlinear or higher-order termsp-value>0.05p\text{-value} > 0.05 retains H0H_0Add interaction terms, quadratic polynomials, or log-transform skewed positive variables
Regressor ExogeneityOrthogonality Cov(X,ε)=0\text{Cov}(X, \varepsilon)=0Durbin-Wu-Hausman p>0.05p > 0.05Transition to IV/2SLS, LIML, or GMM estimation with validated instruments

6. Video Tutorial Walkthrough​

Video Tutorial: Practical Walkthrough for 21. Chọn mẫu: mô hình hóa thu nhập khi nghề nghiệp được lựa chọn on SachKTL
Lesson CodeLesson TitleSupported SoftwareOriginal Source Link on SachKTL
22.1Hiểu rõ vấn đề sai lệch chọn mẫu và nền tảng lý thuyếtStata 18 MP, R 4.x, Python 3.11+Open Original Lesson on SachKTL
22.2Trực giác kinh tế, ví dụ ứng dụng và các mô hình liên quanStata 18 MP, R 4.x, Python 3.11+Open Original Lesson on SachKTL
22.3Hướng dẫn thực hành mô hình Heckman với StataStata 18 MPOpen Original Lesson on SachKTL