Chapter_12
9/17/25About 5 min
Chapter 12: IP Weighting and Marginal Structural Models
12.1 The Causal Question
Main Point 主旨
- Goal: Estimate the average causal effect of smoking cessation () on weight gain ().
- 目标:估算戒烟()对体重增加()的平均因果效应。
Definitions 定义
- Counterfactual means:
- — mean weight gain if everyone quit smoking
- — mean weight gain if no one quit
- Additive average causal effect:
- Association is not causation:
- The observed difference is generally not equal to due to confounding.
重点
- 必须调整混杂变量(如年龄、性别、种族、教育、吸烟强度等)以获得真正的因果效应。
- Observed difference in weight gain between quitters and non-quitters likely underestimates causal effect due to confounding.
12.2 Estimating IP Weights via Modeling
Main Technical Points 技术要点
- IP Weighting creates a pseudo-population where (treatment independent of covariates).
- Properties:
- and independent
- (standardized mean)
- If , then: Association is causation in pseudo-population.
Formula for Individual Weights
For each individual:
where is the probability of receiving their observed treatment given their covariates (i.e., the propensity score).
For a binary treatment:
Propensity scores are modeled, e.g., by logistic regression including all relevant confounders.
Weighted Estimation
- Fit the model:
Using observed , , weighted by .
- estimates the average causal effect:
Horvitz-Thompson and Hajek estimators
- Unbiased estimator under positivity and conditional exchangeability.
- Horvitz-Thompson Estimator:
- Hajek Estimator (generally preferred, especially for bounded outcomes):
12.3 Stabilized IP Weights
Main Technical Points 要点
- Non-stabilized weights: .
- Stabilized weights: .
- = marginal probability of treatment in the study population.
- Stabilized weights have mean 1, reduce variance of the weights, thus typically give narrower confidence intervals.
- Both types of weights give the same point estimate for saturated models (like binary with ), but stabilized preferred for efficiency in non-saturated models.
Positivity Violations
- 结构性违背:某些值下概率为0(如某些人群永远不会被处理),则不能对全体人群推断,需限制于有正概率的亚群体。
- 随机性违背:样本有限,不代表总体真实概率为0,可以通过建模平滑“空格”。
12.4 Marginal Structural Models (MSMs)
Definition 定义
- Marginal structural mean model for binary :
- = is the average causal effect.
Non-saturated MSM for continuous/polytomous treatment:
- E.g., for dose-response (continuous ):
- Use IP weights (), where is the marginal density of and is the conditional density modeled as, e.g., Gaussian for continuous .
- For simulated pseudo-population, fit with IP weights.
Marginal Structural Logistic Model for Binary :
So gives the causal odds ratio.
12.5 Effect Modification and MSMs
Main Concepts 主要概念
- MSMs usually do not include covariates unless to model effect modification.
- To assess effect modification (e.g., by sex ):
If , effect modification exists.
- Fitting via weighted least squares: with IP weights.
- Stabilized weights for subgroups: .
- 若模型中条件于全部混杂变量,权重,此时IP weighting等价于对直接回归调整。
12.6 Censoring and Missing Data 缺失与删失
Main Points 要点
- Only analyzing individuals with observed outcomes can introduce selection bias if censoring () depends on or .
- Define if observed, if censored.
- Interest: (if no one censored in either treatment).
Joint IP Weighting for Censoring and Treatment
- Total weight: , with
- Or, stabilized:
- Weights correct for both confounding and selection bias (provided holds).
Fine Points & Technical Insights 细节和技术要点
Horvitz-Thompson & Hajek Estimators
- Horvitz-Thompson:
- Hajek Estimator:
- Hajek estimator is preferred for bounded outcomes and is less sensitive to model misspecification.
Stabilized Weights — Generalization
- General form: , unrelated to .
- In practice, often .
Positivity Check
- Always check mean of stabilized weights is ~1.
- Deviations indicate possible model misspecification or positivity violations.
- Strict positivity violations preclude valid causal inference in certain strata.
Continuous Treatments
- Estimation of conditional densities much harder.
- Assumed normality for ; results can be very sensitive.
- 需警惕模型假设的影响,特别是在连续处理上。
总结 Summary Table (中英双语)
| Concept | Formula/Definition | 中英文解释 |
|---|---|---|
| IP Weight (binary) | $W^A = 1/P(A | L)$ |
| Stabilized IP Weight | $SW^A = P(A)/P(A | L)$ |
| MSM (binary) | 边际结构模型 | |
| MSM (continuous) | 连续处理的边际结构模型 | |
| Marginal Structural Logistic Model | 边际结构logistic模型 | |
| Hajek estimator | $\dfrac{\hat\left[\frac{I(A=a)Y}{f(A | L)}\right]}{\hat\left[\frac{I(A=a)}{f(A |
| Joint Weight (Treatment Censoring) | , $W^C = 1/P(C=0 | L,A)$ |
| Stabilized Censoring Weight | $SW^C = P(C=0 | A)/P(C=0 |
| Positivity condition | $P(A=a | L=l)>0 \ \forall a,l$ |
| Effect modification in MSM | $E[Y^a | V] = \beta_0 + \beta_1 a + \beta_2 V a + \beta_3 V$ |
结论 Key Takeaways
- IP weighting (including stabilized weights) allows estimation of causal effects from observational data under specific assumptions (exchangeability, positivity, consistency).
- Marginal structural models provide a framework for causal inference, especially when traditional regression would be biased by time-varying confounding or missing data.
- Choice of model (and assumptions, especially normality for continuous ) critically affects estimates.
- Always check positivity, stabilizing, and model specification sensitivity.
- Selection bias (including from censoring/missing outcome) can be corrected using joint IP weighting.
如需某一小节或公式细化推导,请指定!