Lawfare Academy

Research Methods & Scientific Reasoning · Chapter 5 of 10

Confounders, mediators, and colliders: adjustment changes the question

Return to the linked course unit →

DEVELOPED COURSE TEXT

Confounders, mediators, and colliders: adjustment changes the question

Begin with causal order rather than a correlation list

A confounder precedes the exposure and helps explain both exposure and outcome. A mediator lies on a route through which the exposure affects the outcome. A collider is a common consequence of two variables. These roles depend on the causal model, not on a variable's name or whether it is statistically associated with the outcome. Adding every available variable to a regression is therefore not a general solution to causal inference.

Draw arrows representing the assumed mechanisms and chronology. F or T←C→Y, an unblocked common-cause route can distort the exposure comparison. F or T→M→Y, conditioning on M can remove part of the effect if the target is the total effect. F or T→S←U→Y, conditioning on S can create an association between T and U even when they were independent before selection. A diagram states assumptions; it does not prove that the arrows are correct.

Calculate a composition effect and a collider effect

In the fictional strata below, the outcome risks within each stratum are equal across exposure groups, but the exposed group contains many more high-risk units. The crude difference is a weighted-composition contrast. Standardizing both groups to common weights removes that particular measured composition difference. It does not establish that every unmeasured route is controlled.

The separate collider construction is deliberately fully specified. Let T and Ube independent fair binary variables, Y=U, and selection S=1 when either T or U equals1. Before selection, mean Y is 0.5 for either T value. Among selected units, T0 requires U1, whereas T1 permits U0 or1 equally. The selected comparison becomes 0.5 minus1=−0.5 despite no causal effect of T on Y. Selection on a shared consequence created the contrast.

State positivity and the effect being estimated

To compare exposure conditions within a confounder stratum, the data must support both conditions in that stratum, or an additional extrapolation model is needed. This is a positivity/overlap issue. If every high-risk unit is exposed, an adjusted outcome for unexposed high-risk units cannot be read directly from the observed table. A regression coefficient may still be computed, but the causal result depends on model extrapolation.

Mediator adjustment can answer a different question from the total effect, and a controlled direct-effect interpretation requires additional assumptions. It should not be obtained merely by calling a postexposure variable a control. Similarly, conditioning on study completion or treatment adherence can create selection routes. The direction and size of the resulting bias are not universal; the worked collider is a counterexample with explicit probabilities.

A transparent analysis lists the target effect, the causal ordering, the proposed adjustment set, and why each included variable is needed. It also names plausible unmeasured causes and selection processes. Sensitivity analysis then examines how conclusions depend on assumptions rather than pretending that an adjusted label guarantees causality. The fictional examples teach the logic without asserting a real clinical effect.

Worked records

Record 1

Fictional exposed group: 20 low-risk units with 2 events and 80 high-risk with 64. Comparison: 80 low-risk with 8 events and 20 high-risk with 16. Separate toy collider model: T, U independent Bernoulli0.5, Y=U, S=1 if T=1 or U=1.

Develop the reasoning

Within-stratum risks are 0.1 and 0.8 in both exposure groups. Crude risks66% versus24%, a42-point difference. At common50/50 weights, both risks0.45. In the separate selected collider population, E[Y|T1, S1]=0.5 and E[Y|T0, S1]=1, giving−0.5 despite structural Y=U and noT effect.

Progressive practice — optional

1. Foundation

Standardize both outcome groups to 80% low-risk and 20% high-risk.

Compare the worked reasoning

Risk 0.8×0.1+0.2×0.8=0.24 in each. The common target weights change the absolute risk but leave the within-model contrast 0.

Change the record

High-risk comparison units are absent.

Compare the changed-record reasoning

Their risk is no longer observed. Standardization requires an added extrapolation assumption; the original calculation cannot be retained as data-only.

2. Application

In the collider model, what happens if no selection on S is applied?

Compare the worked reasoning

T and Uremain independent, so each T group has mean Y0.5 and observed contrast 0. The negative selected contrast came from conditioning on S.

Change the record

S depends on T on its own and not on U or Y under a newly specified model.

Compare the changed-record reasoning

The prior collider pathway is absent in that revised model. Selection effects must be reassessed from the actual causal structure rather than assumed to have the same bias.

3. Transfer

A study adjusts for a variable caused by the intervention and calls the result the total effect. Repair it.

Compare the worked reasoning

Determine whether the variable mediates part of the effect or opens another path. Define the intended estimand and justify the adjustment; the total-effect label cannot be assigned automatically.

Change the record

The variable is actually measured before exposure and is a genuine common cause.

Compare the changed-record reasoning

Its causal role changes. Adjustment may now address that backdoor route if measurement, overlap, and other identification assumptions are adequate.

Sources and scope