From Regime-Specific Means to Causal Contrasts
An identified mean under one treatment strategy is often not the final scientific target. A clinical question usually compares strategies: for example, what is the difference in average outcome if everyone follows one schedule rather than another? The contrast is marginal because it compares outcomes averaged over the target population, not outcomes conditional on a selected covariate value.
Let \(Y\) be the outcome measured after \(K+1\) treatment decisions, \(A_0,\ldots,A_K\), with covariate history \(L_0,\ldots,L_K\). Write \(\bar A_t=(A_0,\ldots,A_t)\) and \(\bar L_t=(L_0,\ldots,L_t)\). A regime \(g\) specifies the treatment at each decision; it may prescribe fixed treatments or let treatment depend on the observed history available at that decision. Write \(Y^g\) for the potential outcome if the regime were followed by everyone.
These are population-level causal estimands. The mean difference is suitable for a quantitative outcome; the risk difference is a difference in probabilities for a binary outcome. Neither definition requires a linear, logistic, or other parametric outcome model.
Identification and the Contrast Formula
To identify each mean from observed data, the treatment strategies must be well-defined, consistency must connect observed outcomes to the potential outcomes under the treatment actually received, and sequential exchangeability must hold at each decision. In words, conditional on the measured history before a decision, treatment assignment must be independent of the relevant future potential outcomes. The specified treatment choices must also have support at the histories where the regime requires them. Assume additionally that \(E[|Y^g|]\) and \(E[|Y^{g'}|]\) are finite; for a binary outcome this is automatic.
Under these conditions, the longitudinal g-formula identifies each regime mean. For a deterministic regime, set \(a_t=g_t(\bar l_t,\bar a_{t-1})\) at each history. With \(m(\bar l_K,\bar a_K)=E[Y\mid \bar L_K=\bar l_K,\bar A_K=\bar a_K]\), the formula is
Here the treatment values in each factor are those prescribed by \(g\), and the integral includes summation over discrete covariates. Thus the covariate histories are averaged according to their distribution under the regime, not according to an arbitrary observed subgroup. For fixed regimes, this is the same identification principle expressed using a particular treatment sequence. The inductive identification result for multiple decision times supplies these regime-specific means; constructing a contrast requires no new outcome model.
Proof. The identification assumptions and g-formula give observed-data functionals \(\mu(g)\) and \(\mu(g')\) equal to the respective counterfactual means. Subtracting these equalities gives \(E[Y^g]-E[Y^{g'}]=\mu(g)-\mu(g')\). If \(Y^g\) is binary, its expectation is the probability that it equals one, so the same identity gives the risk difference. The finite-mean condition ensures both expectations and their difference are defined. \(\square\)
Worked Marginal Contrasts
Worked Example: Risk Difference After Baseline Standardization
Suppose \(X\) is a binary baseline covariate, with \(P(X=1)=0.4\) and \(P(X=0)=0.6\). Under the identification assumptions, the observed-data risks for treatment \(A=1\) are \(0.30\) when \(X=1\) and \(0.10\) when \(X=0\). Under \(A=0\), the corresponding risks are \(0.20\) and \(0.05\). Calculate the population risk difference for treatment versus control.
Standardize each treatment risk to the same baseline population: \(P(Y^1=1)=0.4(0.30)+0.6(0.10)=0.12+0.06=0.18\). Similarly, \(P(Y^0=1)=0.4(0.20)+0.6(0.05)=0.08+0.03=0.11\).
Therefore the risk difference is \(0.18-0.11=0.07\), or 7 percentage points. The stratum-specific differences are \(0.30-0.20=0.10\) and \(0.10-0.05=0.05\); weighting them by the target population gives \(0.4(0.10)+0.6(0.05)=0.07\), as expected.
Derivation. By the law of total expectation, \(E[Y^a]=\sum_x P(X=x)E[Y^a\mid X=x]\). Consistency and conditional exchangeability identify \(E[Y^a\mid X=x]\) as \(E[Y\mid A=a,X=x]\) on supported strata. Subtract the two expressions for \(a=1\) and \(a=0\), and collect terms using the common weights \(P(X=x)\). For binary \(Y\), each conditional expectation is the corresponding risk, proving the displayed identity. \(\square\)
Worked Example: Mean Difference Under Two Sequential Regimes
Consider two decisions, \(A_0\) and \(A_1\), with an intermediate binary covariate \(L_1\). Compare the fixed regimes \((A_0,A_1)=(0,0)\) and \((1,1)\). Suppose the g-formula gives \(P(L_1=1\mid A_0=0)=0.25\) and \(P(L_1=1\mid A_0=1)=0.60\). The conditional outcome means at the final histories required by the first regime are 2 when \(L_1=0\) and 6 when \(L_1=1\); for the second regime they are 3 and 7, respectively.
Under \((0,0)\), the regime-specific mean is \((1-0.25)(2)+0.25(6)=0.75(2)+0.25(6)=1.5+1.5=3\). Under \((1,1)\), it is \((1-0.60)(3)+0.60(7)=0.40(3)+0.60(7)=1.2+4.2=5.4\).
The mean difference, second regime minus first, is \(5.4-3=2.4\) outcome units. The covariate distribution differs between regimes, so each conditional outcome mean is weighted by the distribution of \(L_1\) under its own regime. Using one regime's weights for both means would not calculate this contrast.
Worked Example: Comparing a History-Dependent Rule With No Treatment
Suppose everyone receives \(A_0=0\), and \(P(L_1=1\mid A_0=0)=0.4\). Compare a rule that sets \(A_1=L_1\) with a rule that sets \(A_1=0\) for everyone. Assume the conditional outcome means are 4 for \(L_1=0,A_1=0\), 8 for \(L_1=1,A_1=0\), and 6 for \(L_1=1,A_1=1\).
For the history-dependent rule, the mean is \(0.6(4)+0.4(6)=2.4+2.4=4.8\). For the no-treatment-at-\(A_1\) rule, it is \(0.6(4)+0.4(8)=2.4+3.2=5.6\). The first rule minus the second has mean difference \(4.8-5.6=-0.8\). This calculation compares two complete strategies, including how the second decision responds to \(L_1\).
Interpretation, Diagnostics, and Limits
A contrast should always be reported with its orientation, scale, and target population. “The risk difference is 7 percentage points for treatment versus control” specifies more than “the effect is 0.07.” For a binary outcome, a risk ratio is another possible contrast, \(P(Y^g=1)/P(Y^{g'}=1)\), when the denominator is positive. It answers a different question and should not be confused with a risk difference.
The key diagnostic question is whether each regime mean was computed with the history distribution that regime implies. In longitudinal settings, prior treatment can change later covariates, and later treatment depends on those histories. Check that the g-formula uses the appropriate treatment-specific covariate distributions at each time and that the outcome conditional means correspond to the prescribed treatment histories. Also check that the two reported means refer to the same outcome definition, follow-up time, and target population.
- Wrong weights: Averaging both regimes over the covariate distribution observed in one treatment group generally changes the target contrast.
- Conditional is not marginal: A difference between conditional model coefficients is not automatically the population risk or mean difference.
- Identification is not estimation: The g-formula identifies a functional of the observed-data law. Estimating its conditional distributions or means still requires data and appropriate statistical methods.
- Parametric convenience is not required: A correctly specified parametric model can be used in estimation, but the causal contrast itself does not assume a parametric outcome response. Flexible estimation does not remove the need for identification assumptions.
The principal limitations are the assumptions themselves and the information in the data. Unmeasured confounding, ill-defined treatment versions, or absent support for a required treatment choice can invalidate identification. Even with identification, finite samples, model misspecification in an estimator, and uncertainty in estimated covariate distributions can affect results. A contrast is therefore not a guarantee that the strategies are feasible, beneficial for every individual, or identified without assumptions.
Check Your Understanding
Answer each question, then compare with the solutions below.
- If \(P(Y^g=1)=0.24\) and \(P(Y^{g'}=1)=0.31\), what is the risk difference for \(g\) versus \(g'\), and how should its sign be read?
- For a quantitative outcome, \(E[Y^g]=12.5\) and \(E[Y^{g'}]=10.0\). Give the mean difference in the stated order.
- Why can two sequential regime means require different weights for the same intermediate covariate?
- For baseline strata with probabilities \(0.3\) and \(0.7\), the treatment risks are \(0.20\) and \(0.10\), while control risks are \(0.10\) and \(0.08\). Calculate the marginal risk difference.
Solutions. (1) \(0.24-0.31=-0.07\): the risk under \(g\) is 7 percentage points lower than under \(g'\). (2) \(12.5-10.0=2.5\) outcome units, meaning a larger mean under \(g\). (3) Earlier treatment can change the covariate distribution, so each regime induces its own distribution of histories in the g-formula. (4) The treatment risk is \(0.3(0.20)+0.7(0.10)=0.06+0.07=0.13\). The control risk is \(0.3(0.10)+0.7(0.08)=0.03+0.056=0.086\). Their difference is \(0.13-0.086=0.044\), or 4.4 percentage points.