Why Outcome-Model Misspecification Changes the Target
Marginal structural models (MSMs) summarize outcomes under treatment histories. Weighting is intended to make comparisons across those histories less confounded, subject to the required causal assumptions. But weighting does not guarantee that a chosen outcome model can represent the resulting response pattern. If, for example, the true response depends on an interaction between treatments at two visits but the MSM omits that interaction, its fitted coefficients generally do not equal the parameters of a true model. They instead describe a weighted compromise among the histories included in the analysis.
That distinction matters for interpretation. A coefficient from a misspecified MSM may not represent the intended causal contrast, and a contrast calculated from several coefficients may be inaccurate even when the weights are appropriate. To interpret results, identify the weighted target, the restriction imposed by the outcome model, and the treatment-history contrast that the fitted model predicts.
In this tutorial, \(W\) denotes the product of the relevant treatment and, when needed, censoring weights. The weights define the target distribution implicit in the estimating equations. For causal interpretation, the weights and analysis must be appropriate for the chosen target population, and the usual identification conditions must hold: consistency, positivity, and sequential exchangeability (or the corresponding assumptions for the study design). Correct weight specification is also required for the intended weighted population to represent the causal target. These assumptions address confounding and selection; they do not make a restrictive MSM correct.
What a Weighted Estimating Equation Targets
For an identity-link MSM that is linear in its coefficients, write \(m(a;\beta)=X(a)^\mathsf{T}\beta\), where \(X(a)\) is the model’s design vector for history \(a\). Weighted least squares solves
At the population level, the corresponding parameter \(\beta^*\) solves \(E[W X(A)\{Y-X(A)^\mathsf{T}\beta^*\}]=0\). If \(E[W X(A)X(A)^\mathsf{T}]\) is nonsingular, this gives
This is a weighted projection: the model’s predictions are chosen to satisfy weighted residual equations. If the MSM is correct, the predictions can represent the target means at all histories in its scope. If it is not, \(\beta^*\) depends on both the true outcome pattern and the weighted distribution of treatment histories. Changing the weights can therefore change the projection even if the underlying response pattern stays the same.
Other links and estimating equations can have different algebraic forms, but the central idea persists: under misspecification, the population equation defines the target. It is not generally a coefficient in the true causal response function. The fitted model’s predicted contrast for histories \(a\) and \(a'\) is \(m(a;\beta^*)-m(a';\beta^*)\) on the model’s link scale when appropriate, or on the outcome scale for an identity-link model. Whether that contrast approximates \(\mu(a)-\mu(a')\) must be assessed, not assumed.
Deriving the Weighted Projection
For the identity-link case, the population weighted estimating equation also follows from minimizing weighted squared prediction error. Define \(L(\beta)=E[W\{Y-X(A)^\mathsf{T}\beta\}^2]\). Differentiating with respect to \(\beta\) gives
Thus a minimizer satisfies the weighted estimating equation. If the design has full rank, the expected weighted squared error is a convex quadratic with a unique minimizer. Under misspecification, this minimizer is the best weighted linear approximation in this squared-error sense; it need not equal the causal mean at any particular history. The weights determine which discrepancies contribute most to the approximation.
Worked Examples
Worked Example: Omitting an Interaction Between Two Visits
Consider a hypothetical continuous outcome: change in symptom burden, measured in points, for four two-visit treatment histories. Suppose the correctly weighted target distribution assigns history probabilities \(0.1, 0.2, 0.3,\) and \(0.4\) to \((0,0),(1,0),(0,1),\) and \((1,1)\), respectively. The corresponding true marginal mean changes are \(0,2,3,\) and \(10\) points. Assume each history has positive probability, the weights are correct for the target, and the causal identification assumptions hold. Fit an additive identity-link MSM \(m(a_1,a_2)=\beta_0+\beta_1a_1+\beta_2a_2\), which omits the interaction.
The weighted marginal outcome mean is
The weighted means of \(A_1\) and \(A_2\) are \(0.2+0.4=0.6\) and \(0.3+0.4=0.7\). The intercept score equation therefore gives
The score equations for the two treatment indicators can be expressed as weighted within-indicator contrasts. Among histories with \(A_1=1\), the outcome mean is \(\{0.2(2)+0.4(10)\}/0.6=7.333\); among histories with \(A_1=0\), it is \(\{0.1(0)+0.3(3)\}/0.4=2.250\). The model’s corresponding difference is \(\beta_1-\frac{1}{12}\beta_2\), since the weighted proportion with \(A_2=1\) is \(0.4/0.6\) when \(A_1=1\), and \(0.3/0.4\) when \(A_1=0\). Hence
Likewise, among histories with \(A_2=1\), the outcome mean is \(\{0.3(3)+0.4(10)\}/0.7=7.000\); among histories with \(A_2=0\), it is \(\{0.1(0)+0.2(2)\}/0.3=1.333\). The fitted model’s difference is \(\beta_2-\frac{2}{21}\beta_1\), so the second contrast equation is
Solving the two contrast equations gives \(\beta_1=5.6\) and \(\beta_2=6.2\). Substitution in the weighted mean equation gives
The model predicts \(-2.4, 3.2, 3.8,\) and \(9.4\) points for histories \((0,0),(1,0),(0,1),\) and \((1,1)\). Its predicted contrast for \((1,1)\) versus \((0,0)\) is \(9.4-(-2.4)=11.8\) points, whereas the true contrast is \(10-0=10\) points. The weights were stipulated to be correct; the discrepancy arises because the additive outcome model cannot reproduce the four true means.
Worked Example: A Linear Dose Model Misses Curvature
Suppose, hypothetically, the true causal mean response over three supported treatment doses is \(\mu(a)=1+a+2a^2\) outcome points, with equal target weight at doses \(a=-1,0,1\). The true means are \(2,1,\) and \(4\) points. Fit a linear MSM \(m(a;\beta)=\beta_0+\beta_1a\). Assume the dose weights correctly represent the target distribution and all three doses have support.
With equal weights, the weighted least-squares intercept is the mean of the three outcomes: \(\beta_0=\{2+1+4\}/3=7/3=2.333\) points. The slope is the weighted covariance numerator divided by the weighted sum of squared centered doses. Since the dose mean is zero,
The fitted means at doses \(-1,0,1\) are \(1.333,2.333,\) and \(3.333\) points. In particular, the model predicts a contrast of \(2.333-1.333=1\) point for dose \(0\) versus dose \(-1\). The true contrast is \(1-2=-1\) point. The fitted linear model reverses the direction of this particular contrast, despite being the weighted best-fitting line at these doses. This is a functional-form error, not a failure of the stipulated weighting.
Worked Example: A Correct Contrast Can Hide Poor History-Specific Predictions
Consider a second hypothetical two-visit setting with equal target weights for histories \((0,0),(1,0),(0,1),(1,1)\), and true outcome means \(0,2,4,\) and \(12\) points. Fit the same additive identity-link MSM. Equal weights and all four histories having positive probability are stipulated; suppose the weights and causal identification assumptions are otherwise appropriate.
The weighted mean is \((0+2+4+12)/4=4.5\), so \(\beta_0=4.5\). The marginal difference for \(A_1\) is \(\{(2+12)/2\}-\{(0+4)/2\}=7-2=5\), giving \(\beta_1=5\). For \(A_2\), the difference is \(\{(4+12)/2\}-\{(0+2)/2\}=8-1=7\), giving \(\beta_2=7\).
The model predictions are \(4.5,9.5,11.5,\) and \(16.5\) points. Its predicted contrast for \((1,1)\) versus \((0,0)\) is \(16.5-4.5=12\) points, which equals the true contrast \(12-0=12\) points. Yet the predictions for the individual histories are far from their true means. The agreement for this one contrast is a consequence of the balanced weighting and this particular response pattern; it is not evidence that the additive model fits. Other predicted contrasts, such as \((1,0)\) versus \((0,0)\), are \(5\) points rather than the true \(2\) points. Always evaluate the contrasts relevant to the scientific question as well as the model’s history-specific predictions.
How to Assess Consequential Functional-Form Errors
A model’s coefficients alone do not reveal whether its restriction is consequential. The same coefficient can contribute to several predicted history contrasts, and a contrast may be accurate by cancellation even when the component predictions are poor. A focused assessment compares model predictions with weighted outcome patterns at histories supported by the data, emphasizing the contrasts that matter substantively.
For example, with two binary treatments an additive identity-link MSM implies zero interaction contrast:
If the corresponding weighted outcome means show a substantial difference between these treatment effects, the additive restriction is questionable. More generally, for each important pair of histories, compare the model-predicted contrast with the estimated weighted contrast, and examine weighted residual patterns. Flexible alternatives can include interactions, nonlinear dose terms, or a more flexible representation of treatment history, provided the data support the added complexity. These checks do not establish causal identification; they evaluate whether the chosen model represents the weighted response pattern adequately.
A robust or clustered standard error addresses uncertainty in estimation under its stated sampling assumptions. It does not change the population estimating equation, make a misspecified model represent the true response, or remove the resulting discrepancy between a predicted and true causal contrast. A narrow interval around a pseudo-true parameter is still an interval about that parameter, not automatic evidence that the scientific contrast has been estimated accurately.
Common Mistake
- Wrong reasoning: “The treatment weights are correctly specified, so the weighted MSM coefficients must equal the causal effects.”
- Correction: Correct weights support the intended weighted causal comparison under the identification assumptions. The outcome-model form separately determines how that comparison is summarized. If the form is too restrictive, the weighted equations estimate a projection or other pseudo-true solution, and its predicted contrasts can differ from the causal contrasts.
- Another warning: Do not infer adequate fit from one contrast that happens to agree with its target. Inspect the predictions and relevant contrasts across histories, within the region of treatment-history support.
Check Your Understanding
Use these questions to check whether you can distinguish the weighted projection from the causal response it approximates.
- What does the population weighted estimating equation define when an identity-link MSM is misspecified?
- In the first worked example, which restriction did the additive model impose on the two-visit treatment response?
- Why can changing the weighted distribution of treatment histories change the pseudo-true coefficients?
- How can a model predict one causal contrast correctly while giving poor predictions for each treatment history involved?
- Why does a robust standard error not correct bias caused by outcome-model misspecification?