Why Prognostic Factors and Effect Modifiers Are Different
A covariate can strongly predict a clinical outcome without changing the effect of treatment. For example, baseline disease severity may predict poorer outcomes in both treatment groups, while the treatment risk difference remains the same at every severity level. Conversely, a covariate is a treatment effect modifier when the treatment contrast differs across its values. That distinction matters in extrapolation: a prognostic factor can be important for predicting target-population outcomes, but a change in the distribution of true effect modifiers can change the target treatment effect.
Effect modification is always defined relative to a particular outcome and effect scale. A covariate may modify a risk difference but not a risk ratio, or the reverse. Therefore, a statement such as “age modifies treatment effect” is incomplete unless it says which outcome and which treatment contrast are being compared.
In a randomized trial, observed outcomes can estimate conditional treatment contrasts, subject to adequate data and appropriate analysis. Causal interpretation also relies on consistency (the observed outcome under the received treatment equals the corresponding potential outcome), correct treatment assignment and outcome measurement, and the trial’s randomization or other valid basis for comparing treatment groups. For transport, the earlier material on exchangeability assumptions for extrapolation adds a separate requirement: after conditioning on the relevant covariates, the source conditional treatment contrast must apply in the target. Identifying effect modifiers does not itself establish that assumption.
Interaction Contrasts Make the Distinction Explicit
For a binary covariate \(X\), an additive interaction contrast is the difference between the treatment effect in the \(X=1\) group and the treatment effect in the \(X=0\) group. Write \(\mu_{ax}=E(Y\mid A=a,X=x)\), with causal interpretation when the design and assumptions support it. The additive interaction contrast is:
The first bracket is the treatment-minus-comparator contrast among people with \(X=1\); the second is that contrast among people with \(X=0\). A zero interaction contrast means the two additive effects are equal. It does not mean that \(X\) has no association with outcome: the outcome levels may differ substantially between \(X\) groups in both treatment arms.
A simple model shows why the interaction coefficient represents this difference. Suppose the conditional mean is linear in treatment and binary \(X\):
At \(X=0\), the treatment contrast is \((\beta_0+\beta_A)-\beta_0=\beta_A\). At \(X=1\), it is \((\beta_0+\beta_X+\beta_A+\beta_{AX})-(\beta_0+\beta_X)=\beta_A+\beta_{AX}\). Subtracting the first contrast from the second gives \(\beta_{AX}\). The main effect \(\beta_X\) describes a difference in conditional outcome means at \(A=0\); it is not the treatment interaction.
For a continuous covariate, the same principle applies. Under the model \(E(Y\mid A,X)=\beta_0+\beta_A A+\beta_X X+\beta_{AX}AX\), the treatment contrast at \(X=x\) is \(\beta_A+\beta_{AX}x\). Thus \(\beta_{AX}\) is the change in the additive treatment contrast per one-unit increase in \(X\). If a linear form is not plausible, interaction can instead be represented with prespecified categories, splines, or another suitable function. The form should be chosen to reflect the scientific question and data support, not selected solely because it produces a small p-value.
Worked Example: Prognostic Factor Without Additive Effect Modification
Consider hypothetical trial risks for an adverse outcome, with baseline risk group \(X=0\) or \(X=1\). The table gives risks under comparator and treatment.
| Risk group | Comparator risk | Treatment risk | Treatment risk difference |
|---|---|---|---|
| \(X=0\) | 0.10 | 0.05 | \(0.05-0.10=-0.05\) |
| \(X=1\) | 0.30 | 0.25 | \(0.25-0.30=-0.05\) |
The comparator risk is higher in group \(X=1\), so this covariate is prognostic for the adverse outcome. The additive interaction contrast is:
The treatment reduces risk by 5 percentage points in each group, so the table shows no additive effect modification. This does not prove that modification is absent in a real study: uncertainty, sample size, and the chosen outcome scale matter. Nor does it imply equal relative effects. The risk ratios are \(0.05/0.10=0.50\) for \(X=0\) and \(0.25/0.30=0.833\) for \(X=1\), which differ.
Effect Scale Determines What Counts as Modification
The interaction calculation must use the scale of the estimand. For binary outcomes, common conditional contrasts include the risk difference, risk ratio, and odds ratio. Equality of treatment effects across covariate values on one scale does not imply equality on another. For example, the previous table has equal risk differences but different risk ratios. A model’s interaction coefficient is therefore meaningful only together with its link function and the contrast being interpreted.
For a risk difference, the conditional effect is \(R_1(x)-R_0(x)\), where \(R_a(x)=P(Y^a=1\mid X=x)\). For a risk ratio it is \(R_1(x)/R_0(x)\), when the denominator is positive. To assess modification on either scale, compare the conditional treatment contrasts across \(x\) on that scale. A product term in a logistic regression, for example, describes interaction on the log-odds scale; it is not automatically an interaction on the risk-difference or risk-ratio scale.
Worked Example: An Interaction Contrast on the Additive Scale
Suppose a hypothetical randomized trial estimates adverse-event risks for two subgroups. In subgroup \(X=0\), the comparator risk is 0.40 and treatment risk is 0.30. In subgroup \(X=1\), the comparator risk is 0.20 and treatment risk is 0.18. Calculate the subgroup risk differences and the interaction contrast.
For \(X=0\), treatment minus comparator is \(0.30-0.40=-0.10\), a reduction of 10 percentage points. For \(X=1\), it is \(0.18-0.20=-0.02\), a reduction of 2 percentage points. The interaction contrast is:
The estimated treatment risk difference is 8 percentage points less favorable in the \(X=1\) subgroup than in the \(X=0\) subgroup. That is evidence of an additive-scale difference in the displayed estimates, not by itself evidence that the difference is statistically or clinically persuasive. A real analysis should report uncertainty for the interaction contrast and consider whether the subgroup definition and scale were specified in advance.
The relative contrasts differ too: \(0.30/0.40=0.75\) in \(X=0\) and \(0.18/0.20=0.90\) in \(X=1\). Their ratio is \(0.90/0.75=1.20\), another way to express unequal subgroup risk ratios. This relative comparison is not the same numerical interaction as the additive contrast of 0.08.
Which Distributions Matter When Transporting an Effect?
Suppose the target estimand is the target-population average risk difference. If the conditional risk difference applies in the target given the relevant covariates \(X\), the target average risk difference is the mean of those conditional risk differences over the target distribution:
This expression follows from linearity of expectation: the target mean risk under treatment minus the target mean risk under comparator equals the target mean of the conditional risk differences. Consequently, for an additive average treatment effect, it is the target distribution of covariates that modify the conditional risk difference that must be represented correctly in the averaging. If several covariates jointly modify the effect, their joint distribution matters; matching separate marginal distributions can still give the wrong average if their association differs.
A covariate that is purely prognostic does not change this average risk difference if the conditional risk difference is constant over it. But prognostic covariates can still matter to other target quantities, such as target risks under each treatment. For relative measures, one must not generally average conditional relative effects and call the result the marginal relative effect. Instead, calculate target-standardized risks first and then form their ratio:
This distinction is important even when the covariate is not a modifier on the risk-ratio scale. Different baseline risks across covariate strata can make a marginal risk ratio differ from a conditional risk ratio. Thus, the distribution required for transport depends on the estimand and scale: for an additive contrast, average conditional differences; for a marginal relative contrast, standardize the outcome risks and then calculate the relative contrast. Other scales require their own clearly defined marginal estimand and calculation.
Worked Example: Target Distribution Changes an Additive Effect
In a hypothetical trial, the estimated conditional risk difference is \(-0.10\) for \(X=0\) and \(+0.02\) for \(X=1\). In the source trial, 25% have \(X=1\); in the target population, 60% have \(X=1\). Assume for this calculation that these conditional risk differences apply in the target and that both groups are represented. Calculate the target average risk difference.
The target assigns weight \(0.40\) to \(X=0\) and \(0.60\) to \(X=1\). Therefore:
The transported average risk difference is \(-0.028\), or a 2.8 percentage-point reduction in risk under treatment relative to comparator. For comparison, the source-weighted difference is \((0.75)(-0.10)+(0.25)(0.02)=-0.070\), a 7.0 percentage-point reduction. The change arises because the subgroup with a less favorable conditional effect is more prevalent in the target. The arithmetic illustrates distributional impact; it does not establish that the conditional effects truly transport or quantify their estimation uncertainty.
Worked Example: Why Conditional Risk Ratios Cannot Simply Be Averaged
Consider two hypothetical target subgroups with equal population weights. Their risks under treatment and comparator are respectively \((0.20,0.40)\) and \((0.20,0.20)\). The conditional risk ratios are \(0.20/0.40=0.50\) and \(0.20/0.20=1.00\). Their equally weighted average is:
But the target-standardized treatment risk is \((0.20+0.20)/2=0.20\), and the target-standardized comparator risk is \((0.40+0.20)/2=0.30\). The marginal target risk ratio is therefore:
The average conditional risk ratio, 0.75, is not the marginal risk ratio, approximately 0.667. The correct marginal calculation standardizes each treatment-specific risk over the target distribution and then takes the ratio. In this example the conditional risk ratios differ, but the central lesson is broader: conditional relative contrasts do not in general average to the corresponding marginal contrast.
Practical Identification and Diagnostics
A defensible modifier assessment starts by fixing the outcome, contrast scale, and target estimand. Then use clinical and pharmacological knowledge to identify plausible baseline modifiers, and estimate their conditional treatment contrasts with uncertainty. In a model-based analysis, inspect predicted contrasts across clinically meaningful covariate values rather than interpreting a product-term coefficient in isolation. For continuous covariates, check whether the chosen functional form describes the observed pattern; a single linear interaction can miss a threshold or curved relationship.
Common warning signs include very small subgroup counts, wide intervals for interaction contrasts, unstable estimates when a few observations are removed, and apparent modification that depends on an arbitrary categorization or effect scale. A non-significant interaction test is not proof of homogeneous effects; interaction tests often have limited precision. Conversely, a small p-value from many unplanned subgroup searches may be a chance finding. Report the estimated contrasts, uncertainty, scale, and analysis choices, and distinguish exploratory patterns from well-supported modifiers.
The main alternative to an interaction model is to estimate treatment contrasts separately within prespecified strata. This is transparent for a small number of clinically meaningful groups, but can be imprecise and does not automatically handle continuous covariates or multiple modifiers. A regression model can borrow information and represent continuous patterns, but depends on its functional form. Either approach identifies conditional patterns; neither removes the need to justify source-to-target applicability. The detailed mechanics of checking whether source and target covariate support is adequate are a separate issue.
Check Your Understanding
Answer each question using the specified effect scale. Concise solutions follow.
- In a trial, a baseline marker predicts the outcome in both arms, while the treatment risk difference is \(-0.04\) at every marker value. Is the marker an additive effect modifier?
- For \(X=0\), comparator and treatment risks are 0.30 and 0.20. For \(X=1\), they are 0.50 and 0.35. Calculate the additive interaction contrast.
- Conditional risk differences are \(-0.06\) for \(X=0\) and \(0.02\) for \(X=1\). In the target, 75% have \(X=1\). Calculate the target average risk difference.
- Why is an interaction term in a logistic regression not automatically evidence of interaction on the risk-difference scale?
- Two equally sized target groups have treatment and comparator risks \((0.10,0.20)\) and \((0.30,0.60)\). Calculate the average conditional risk ratio and the marginal risk ratio. Are they equal?
Solutions. (1) No. The marker is prognostic, but the risk difference is constant, so there is no additive effect modification in the stated pattern. (2) The subgroup differences are \(0.20-0.30=-0.10\) and \(0.35-0.50=-0.15\); the interaction contrast is \(-0.15-(-0.10)=-0.05\), a 5 percentage-point more negative difference at \(X=1\). (3) The target weight for \(X=0\) is \(0.25\), so \((0.25)(-0.06)+(0.75)(0.02)=-0.015+0.015=0\). (4) The logistic interaction is on the log-odds scale; risk differences are functions of the treatment-specific predicted risks, so the interaction must be evaluated on that scale directly. (5) Both conditional ratios are \(0.10/0.20=0.50\) and \(0.30/0.60=0.50\), so their average is 0.50. The marginal risks are treatment \((0.10+0.30)/2=0.20\) and comparator \((0.20+0.60)/2=0.40\), giving marginal ratio \(0.20/0.40=0.50\). They are equal here; equality in this example does not make averaging conditional ratios generally valid.