6. Phương pháp kiểm soát tổng hợp
This practical how-to guide presents the theoretical foundations, structural mathematical equations, detailed breakdown of 2 specialized lessons, and multi-platform replication workflows for 6. Phương pháp kiểm soát tổng hợp from the textbook Causal Inference and Policy Impact Evaluation Econometrics, with direct cross-references to the authoritative source material at https://sachktl.tnsai.vn/vi/cserk22u1/c6/.
1. Methodological Foundations, Mathematical Specification, and Identification
Phương pháp kiểm soát tổng hợp 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 phương pháp hiện đại và thú vị nhất trong kinh tế lượng ứng dụng: Phương pháp Kiểm soát Tổng hợp, hay còn gọi là Synthetic Control Method. Đã bao giờ bạn tự hỏi làm thế nào các nhà kinh tế có thể đo lường tác động của một sự kiện vĩ mô độc nhất, chẳng hạn như Brexit đối với nền kinh tế Anh, hay việc California ban hành luật kiểm soát thuốc lá?
1.1. Structural Equations and Representative Estimator
1.2. Core Identification Assumptions and Applicability Conditions
- Conditional parallel trends ensure the comparison group validly represents the counterfactual trajectory of treated units in the absence of intervention.
- No anticipation prior to treatment onset and common support overlap are required for point identification of .
- The Stable Unit Treatment Value Assumption (SUTVA) rules out unmodeled spillover interference across treated and control units.
Read the complete theoretical derivations, mathematical proofs, and worked examples for this chapter on SachKTL.
Extract standardized Vietnamese macroeconomic, corporate financial, and household survey data for hands-on replication.
Execute econometric specifications, run diagnostic battery tests, and export APA 7th / AER publication-grade tables automatically.
2. Lesson-by-Lesson Academic Breakdown
2.1. Nền tảng lý thuyết của phương pháp kiểm soát tổng hợp
- Giới thiệu: Tại sao chúng ta cần một phương pháp mới? Chào mừng các bạn đã quay trở lại với chuỗi bài học về Phương pháp Kiểm soát Tổng hợp. Trong bài giới thiệu, chúng ta đã nói về thách thức khi đánh giá các chính sách chỉ tác động đến một đơn vị duy nhất. Hãy tưởng tượng bạn là một nhà kinh tế và được giao nhiệm vụ đánh giá tác động kinh tế của một trận động đất lớn lên một khu vực cụ thể. Bạn không thể dùng phương pháp so sánh thông thường, vì không có khu vực nào khác giống hệt khu vực bị ảnh hưởng để làm đối chứng.
Key Methodological Sub-Topics Covered in This Lesson:
-
1. Giới thiệu: Tại sao chúng ta cần một phương pháp mới?
-
2. Nền tảng lý thuyết: Xây dựng một "bản sao" hoàn hảo
-
Triết lý cốt lõi: Sức mạnh của sự kết hợp
-
Mô hình SCM: Tìm kiếm bộ trọng số tối ưu
-
Xây dựng đối chứng và giả định nhận dạng
-
3. Suy luận thống kê: Kiểm định giả dược
-
Analytical Environments:
Stata 18 MP, R 4.x, Python 3.11+· Authoritative Source: Read Full Original Lesson on SachKTL
2.2. Hướng dẫn thực hành SCM và kiểm định giả dược với Stata
- Giới thiệu: Từ lý thuyết đến thực hành Chào mừng các bạn đến với bài học thực hành của chuỗi bài về Phương pháp Kiểm soát Tổng hợp. Trong bài học trước, chúng ta đã cùng nhau tìm hiểu về logic, mô hình toán học và cách suy luận thống kê của SCM. Chúng ta đã biết cách SCM tạo ra một "bản sao tổng hợp" để ước lượng kịch bản phản thực tế và sử dụng kiểm định giả dược để đánh giá ý nghĩa thống kê.
Key Methodological Sub-Topics Covered in This Lesson:
-
1. Giới thiệu: Từ lý thuyết đến thực hành
-
2. Quy trình phân tích từng bước với Stata
-
3. Tổng kết và kết luận
-
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 6. Phương pháp kiểm soát tổng hợp. 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.
4. Multi-Platform Implementation Scripts in Stata, R, and Python
- Stata 18 MP
- R 4.x
- Python 3.11+
* Ướ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
# Nạp thư viện suy diễn nhân quả fixest, did và MatchIt
library(fixest)
library(did)
library(MatchIt)
df <- read.csv("sachktl_causal_ecodata.csv")
# 1. Ước lượng mô hình DiD và Event Study với sai số chuẩn cụm
mod_did <- feols(y ~ treated_post + x1 + x2 | id + year, data = df, cluster = ~id)
summary(mod_did)
# 2. Ước lượng Callaway & Sant'Anna (2021) cho DiD đa thời điểm
cs_out <- att_gt(yname = "y", tname = "year", idname = "id", gname = "first_treat",
xformla = ~ x1 + x2, data = df, control_group = "nevertreated")
summary(aggte(cs_out, type = "dynamic"))
# Nạp thư viện statsmodels và linearmodels để ước lượng DiD & IPW
import pandas as pd
import statsmodels.formula.api as smf
from linearmodels.panel import PanelOLS
df = pd.read_csv("sachktl_causal_ecodata.csv")
# 1. Ước lượng điểm xu hướng Propensity Score bằng Logit
ps_mod = smf.logit("treat ~ x1 + x2 + x3", data=df).fit(disp=False)
df["pscore"] = ps_mod.predict(df)
# 2. Ước lượng Difference-in-Differences hai chiều với sai số chuẩn cụm
df_panel = df.set_index(["id", "year"])
did_mod = PanelOLS.from_formula("y ~ 1 + treated_post + x1 + x2 + EntityEffects + TimeEffects", data=df_panel)
did_res = did_mod.fit(cov_type="clustered", cluster_entity=True)
print(did_res.summary)
5. Post-Estimation Diagnostic and Interpretation Guide
| Diagnostic Criterion | Null Hypothesis | Benchmark Threshold | Corrective Action When Is Rejected |
|---|---|---|---|
| Heteroskedasticity | Constant error variance | rejects | Apply vce(robust), vcovHC(HC1), or FGLS/WLS weighted estimation |
| Multicollinearity | No severe linear dependence among regressors | acceptable | Drop redundant covariates, center interactions, or apply LASSO/Ridge regularization |
| Ramsey RESET Functional Form | No omitted nonlinear or higher-order terms | retains | Add interaction terms, quadratic polynomials, or log-transform skewed positive variables |
| Regressor Exogeneity | Orthogonality | Durbin-Wu-Hausman | Transition to IV/2SLS, LIML, or GMM estimation with validated instruments |
6. Video Tutorial Walkthrough
Video Tutorial: Practical Walkthrough for 6. Phương pháp kiểm soát tổng hợp on SachKTL
7. Complete Lesson Directory and Backlinks to Original SachKTL Articles
| Lesson Code | Lesson Title | Supported Software | Original Source Link on SachKTL |
|---|---|---|---|
| 6.1 | Nền tảng lý thuyết của phương pháp kiểm soát tổng hợp | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |
| 6.2 | Hướng dẫn thực hành SCM và kiểm định giả dược với Stata | Stata 18 MP | Open Original Lesson on SachKTL |