14. Phân tích tổng hợp với dữ liệu cấp cá nhân
This practical how-to guide presents the theoretical foundations, structural mathematical equations, detailed breakdown of 4 specialized lessons, and multi-platform replication workflows for 14. Phân tích tổng hợp với dữ liệu cấp cá nhân from the textbook Meta-Analysis in Stata: An Updated Framework, with direct cross-references to the authoritative source material at https://sachktl.tnsai.vn/vi/cshek21u1/c14/.
1. Methodological Foundations, Mathematical Specification, and Identification
Giới thiệu phân tích tổng hợp: Dữ liệu bệnh nhân cá nhân và dữ liệu tóm tắt An Introduction to Meta-Analysis: Individual Patient-Level data vs. Summary Sstatistics Giới thiệu Cuộc tranh luận về "tiêu chuẩn vàng" Trong thế giới của phân tích tổng hợp, việc có được dữ liệu cấp độ bệnh nhân cá nhân từ các nghiên cứu gốc thường được coi là "tiêu chuẩn vàng".
1.1. Structural Equations and Representative Estimator
1.2. Core Identification Assumptions and Applicability Conditions
- Correct functional form specification in parameters without omitting relevant covariates correlated with included regressors.
- Zero conditional mean of disturbances , ensuring unbiasedness and asymptotic consistency.
- Full column rank of the design matrix without exact multicollinearity, paired with HC1 or cluster-robust standard errors under heteroskedasticity.
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. Phân tích dữ liệu bệnh nhân cá nhân
Phân tích dữ liệu bệnh nhân cá nhân: Phương pháp tiếp cận "tiêu chuẩn vàng" Individual patient-level data analysis: The "gold standard" approach Khai thác sức mạnh từ dữ liệu thô Chào mừng các bạn đến với bài học thực hành đầu tiên, nơi chúng ta sẽ khám phá phương pháp được nhiều nhà nghiên cứu coi là "tiêu chuẩn vàng" trong việc tổng hợp bằng chứng: phân tích tổng hợp với dữ liệu cấp độ bệnh nhân cá nhân .
Key Methodological Sub-Topics Covered in This Lesson:
-
Khai thác sức mạnh từ dữ liệu thô
-
Nền tảng phương pháp luận của phân tích IPD
-
Tiếp cận một giai đoạn
-
Sức mạnh của việc gộp dữ liệu
-
Khả năng phân tích biến đồng thời và tương tác
-
Quy trình phân tích IPD trong Stata
-
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.2. Từ IPD đến phân tích dữ liệu tóm tắt
Từ IPD đến phân tích dữ liệu tóm tắt và so sánh From IPD to summary statistics analysis and comparison Giả lập kịch bản nghiên cứu phổ biến Trong bài học trước, chúng ta đã được trải nghiệm sự xa xỉ của việc có trong tay dữ liệu cấp độ bệnh nhân cá nhân . Chúng ta đã có thể xây dựng các mô hình hồi quy phức tạp và khám phá các mối quan hệ ở cấp độ cá nhân. Tuy nhiên, trong thực tế, việc tiếp cận IPD là một ngoại lệ hơn là một quy luật.
Key Methodological Sub-Topics Covered in This Lesson:
-
Giả lập kịch bản nghiên cứu phổ biến
-
Chuẩn bị dữ liệu: Tổng hợp IPD thành SS
-
Quy trình phân tích SS và so sánh với IPD
-
So sánh kết quả phân tích Lamotrigine
-
Bước 1: Phân tích tổng hợp SS
-
Bước 2 & 3: So sánh kết quả
-
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.3. Thực hành mô phỏng để kiểm chứng hiệu quả IPD và SS
Thực hành mô phỏng để kiểm chứng hiệu quả IPD và SS A simulation study to verify the efficiency of IPD and SS analyses Từ một ví dụ đến một kết luận tổng quát Trong bài học trước, chúng ta đã thực hiện một so sánh trực tiếp giữa phân tích IPD và SS trên một bộ dữ liệu duy nhất và đi đến một kết luận khá bất ngờ: cả hai phương pháp đều cho kết quả rất giống nhau. Tuy nhiên, một nhà khoa học cẩn trọng sẽ luôn đặt câu hỏi: "Liệu kết quả này chỉ đúng cho bộ dữ liệu cụ thể này, hay nó phản ánh một quy luật tổng quát hơn?".
Key Methodological Sub-Topics Covered in This Lesson:
-
Từ một ví dụ đến một kết luận tổng quát
-
Thiết kế nghiên cứu mô phỏng
-
Thực hành mô phỏng trong Stata
-
Bước 1: Viết chương trình tạo dữ liệu
-
Bước 2: Viết chương trình phân tích
-
Bước 3: Chạy mô phỏng với lệnh
simulate -
Analytical Environments:
Stata 18 MP· Authoritative Source: Read Full Original Lesson on SachKTL
2.4. Rút ra kết luận và khuyến nghị thực tiễn
Tổng hợp phân tích IPD và SS: Hiệu quả và khuyến nghị thực tiễn Synthesizing IPD and SS analysis: Efficiency and practical recommendations Nhìn lại cuộc tranh luận và những phát hiện bất ngờ Xin chúc mừng bạn đã hoàn thành một trong những chuỗi bài học mang tính phương pháp luận sâu sắc nhất trong kinh tế lượng ứng dụng!
Key Methodological Sub-Topics Covered in This Lesson:
-
Nhìn lại cuộc tranh luận và những phát hiện bất ngờ
-
Tại sao SS lại hiệu quả đến vậy?
-
Sức mạnh của các thống kê đầy đủ
-
Khi nào IPD thực sự vượt trội?
-
Quy trình làm việc và khung quyết định cho nhà nghiên cứu
-
Bằng chứng từ Case Study và Mô phỏng: Một cái nhìn nhất quán
-
Analytical Environments:
Stata 18 MP, R 4.x, Python 3.11+· 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 14. Phân tích tổng hợp với dữ liệu cấp cá nhâ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.
4. Multi-Platform Implementation Scripts in Stata, R, and Python
- Stata 18 MP
- R 4.x
- Python 3.11+
* Thiết lập môi trường, ước lượng mô hình và kiểm định chẩn đoán toàn diện
version 18.0
clear all
set more off
import delimited "sachktl_empirical_ecodata.csv", clear encoding("utf-8")
describe
summarize y x1 x2 x3, detail
* 1. Ước lượng mô hình cơ sở và kiểm định phương sai thay đổi / đa cộng tuyến / dạng hàm
regress y x1 x2 x3
estat hettest
estat imtest, white
estat vif
estat ovtest
* 2. Ước lượng với sai số chuẩn vững White HC1 và xuất tác động biên
regress y c.x1##c.x2 x3, vce(robust)
margins, dydx(x1 x2 x3)
# Nạp thư viện phân tích kinh tế lượng và thực thi kiểm định chẩn đoán
library(tidyverse)
library(lmtest)
library(sandwich)
library(car)
df <- read.csv("sachktl_empirical_ecodata.csv")
summary(df)
# 1. Ước lượng mô hình tuyến tính và kiểm định Breusch-Pagan, RESET, VIF
fit <- lm(y ~ x1 + x2 + x3, data = df)
bptest(fit)
resettest(fit, power = 2:3, type = "fitted")
vif(fit)
# 2. Xuất bảng hệ số ước lượng với sai số chuẩn vững HC1
coeftest(fit, vcov = vcovHC(fit, type = "HC1"))
# Nạp thư viện statsmodels và thực thi ước lượng kèm chẩn đoán phần dư
import pandas as pd
import statsmodels.api as sm
import statsmodels.formula.api as smf
from statsmodels.stats.diagnostic import het_breuschpagan, linear_reset
from statsmodels.stats.outliers_influence import variance_inflation_factor
df = pd.read_csv("sachktl_empirical_ecodata.csv")
# 1. Ước lượng mô hình với sai số chuẩn vững HC1
model = smf.ols("y ~ x1 + x2 + x3", data=df).fit(cov_type="HC1")
print(model.summary())
# 2. Kiểm định phương sai thay đổi Breusch-Pagan, Ramsey RESET và hệ số VIF
bp_lm, bp_pval, _, _ = het_breuschpagan(model.resid, model.model.exog)
reset_res = linear_reset(model, power=2, use_f=True)
X = sm.add_constant(df[["x1", "x2", "x3"]].dropna())
vifs = {col: variance_inflation_factor(X.values, i) for i, col in enumerate(X.columns)}
print(f"Breusch-Pagan p={bp_pval:.4f} | RESET p={reset_res.pvalue:.4f} | VIF={vifs}")
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 14. Phân tích tổng hợp với dữ liệu cấp cá nhân on SachKTL
7. Complete Lesson Directory and Backlinks to Original SachKTL Articles
| Lesson Code | Lesson Title | Supported Software | Original Source Link on SachKTL |
|---|---|---|---|
| 14.1 | Phân tích dữ liệu bệnh nhân cá nhân | Stata 18 MP | Open Original Lesson on SachKTL |
| 14.2 | Từ IPD đến phân tích dữ liệu tóm tắt | Stata 18 MP | Open Original Lesson on SachKTL |
| 14.3 | Thực hành mô phỏng để kiểm chứng hiệu quả IPD và SS | Stata 18 MP | Open Original Lesson on SachKTL |
| 14.4 | Rút ra kết luận và khuyến nghị thực tiễn | Stata 18 MP, R 4.x, Python 3.11+ | Open Original Lesson on SachKTL |