What Partial Confounding Does to a Comparison
A study may distribute conditions across batches unevenly without assigning every condition to every batch. In that setting, a condition contrast can have different levels of support. It may be observed directly among samples processed in the same batch, or it may be recoverable only by combining comparisons across batches and assuming that batch effects act additively. Those are not equivalent kinds of evidence.
For example, if conditions A and B occur together in one batch, their difference can be estimated without comparing that batch to another. If B and C occur together in a second batch, the A-to-C difference can be pieced together through B. But no batch directly compares A with C. That final comparison therefore depends on a model connecting the batches, and especially on the assumption that the condition effect does not change by batch.
The introductory material on diagnosing complete condition-batch confounding establishes why a condition that occurs in only one batch can be inseparable from that batch under an additive analysis. Partial overlap can provide more information: shared conditions may link otherwise different batches. The practical task is to say exactly which comparisons those links support, and what assumptions are needed to interpret them.
Model and Assumptions
The terms \(\tau_c\) and \(\gamma_b\) need a reference convention, such as setting one condition effect and one batch effect to zero, or imposing sum-to-zero constraints. The convention sets the origin of the effects; it does not change a contrast such as \(\tau_B-\tau_A\). The model concerns the outcome at the experimental-unit level. Multiple cells from one donor do not become independent donors merely because they produce many measurements.
The additive model does not assert that batches are harmless or that condition assignment was randomized. It says that batch shifts the outcome by an amount that is common across conditions, while condition shifts it by an amount that is common across batches. For a causal interpretation, the study’s assignment and sampling design must also justify that interpretation; adjustment alone does not establish causation.
Represent the allocation as a set of condition-batch pairs that have observations. A condition pair is directly compared if both conditions occur in at least one common batch. A chain of such shared-batch comparisons can connect conditions that never occur together. A comparison obtained only by following a chain is model-dependent: it is supported under the additive model, but it is not a direct within-batch comparison.
Why a Shared Condition Can Bridge Batches
Suppose conditions A and B are observed in batch 1, while B and C are observed in batch 2. Under the additive model, the expected difference between B and A in batch 1 is
The batch effect cancels. Similarly, the B-to-C contrast in batch 2 estimates \(\tau_C-\tau_B\). Adding the two contrasts gives
This is the basis for recovering a comparison along a path of overlapping conditions. The cancellation is valid only if the B effect is the same in both batches and condition effects do not change by batch. If B behaves differently across batches, the two contrasts do not share a common B effect to cancel.
A short derivation also shows why a direct comparison is less dependent on cross-batch assumptions. In any batch containing both A and B, subtracting their expected outcomes eliminates both \(\mu\) and that batch’s \(\gamma_b\). When A and C are never together, no such subtraction is available; an estimate of their contrast must instead connect observations from multiple batches through the model.
Worked Example: Reconstructing a Contrast Through an Overlap
Suppose hypothetical donor-level mean log-expression values are 5 for A and 8 for B in batch 1, and 10 for B and 12 for C in batch 2. Assume the additive model is appropriate for this outcome and these conditions. What can be said about the B-versus-A and C-versus-A contrasts?
The within-batch B-versus-A estimate is $$ \widehat{\tau_B-\tau_A}=8-5=3 $$ log-expression units. The within-batch C-versus-B estimate is $$ \widehat{\tau_C-\tau_B}=12-10=2 $$ log-expression units. Following the path through B gives $$ \widehat{\tau_C-\tau_A} =(12-10)+(8-5)=2+3=5 $$ log-expression units.
The 3-unit B-versus-A contrast and the 2-unit C-versus-B contrast are directly supported within their respective batches. The 5-unit C-versus-A contrast is reconstructed: A and C were never observed in the same batch. Its interpretation as a condition contrast relies on the additive model, particularly on the absence of condition-by-batch interaction. The arithmetic gives point estimates, not uncertainty intervals; donor counts and variability would be needed to quantify uncertainty.
Direct Evidence, Model-Based Recovery, and Extrapolation
It is useful to label each planned contrast before interpreting an adjusted estimate. A direct contrast has observations for both conditions in the same batch. A path-based contrast can be assembled from direct contrasts that connect the conditions through shared batches. A comparison between disconnected groups of condition-batch observations cannot be recovered from condition and batch effects alone: the data provide no shared condition or batch link to separate those effects.
Even a connected path does not make every conclusion equally secure. A direct contrast does not require comparing batch levels to estimate the condition difference. A path-based contrast requires the condition effect to remain stable across the batches used in the path. Longer paths can also accumulate uncertainty, since each estimated contrast contributes to the final estimate. The resulting standard error depends on the data and the covariance structure; it is not generally correct to treat the component contrasts as independent if they reuse observations.
The term extrapolation is apt when a model supplies a condition comparison in a batch where that comparison was not observed. It does not necessarily mean predicting beyond the numerical range of the outcome. It means extending an assumed pattern of condition and batch effects to an unobserved condition-batch combination. Report this distinction rather than presenting every adjusted contrast as if it came from a direct comparison.
Worked Example: A Direct Contrast Despite Uneven Allocation
In a hypothetical study, condition A has mean outcome 4 in batch 1 and mean 6 in batch 2. Condition B has mean 7 in batch 1, but no B samples are processed in batch 2. Assume independent donor-level observations and an additive condition-batch model.
Because A and B are both present in batch 1, the direct contrast is $$ \widehat{\tau_B-\tau_A}=7-4=3 $$ outcome units. Batch 1’s shared shift cancels in this subtraction. The batch difference for A is \(6-4=2\) units, but that difference alone is not the condition contrast.
The unadjusted difference between the B mean and the mean of A across both batches would compare groups with different batch composition. If the two A batch means were averaged equally, that mean would be \((4+6)/2=5\), giving \(7-5=2\), not the direct within-batch contrast of 3. This illustrates why marginal means can mix condition and batch differences in an uneven allocation.
The model can use A’s presence in both batches to estimate a batch shift, but this is not needed to obtain the B-versus-A contrast from batch 1. There is no direct B-versus-A comparison in batch 2, so extending the 3-unit contrast to that batch remains an assumption of the additive model rather than an observed check.
Checking Whether the Additive Interpretation Is Plausible
When a condition pair is present in multiple batches, compare its within-batch contrasts. Materially different estimates can indicate a condition-by-batch interaction, although sampling variability may also explain differences. For instance, if the B-minus-A contrast is 2 units in one batch and -1 unit in another, a single common contrast is not a good description of both batches unless the discrepancy is consistent with their uncertainty.
Partial overlap offers some diagnostics, but it cannot diagnose every failure. In the A-B, B-C arrangement, the A-versus-B contrast is observed only in the first batch and the B-versus-C contrast only in the second. There is no repeated condition contrast across batches with which to check stability. The additive assumption may then be scientifically reasonable, but the allocation itself cannot verify it.
- Inspect the allocation. List which conditions occur in each batch and identify the shared conditions linking batches.
- Compare repeated overlaps. Where the same condition pair occurs in multiple batches, examine the separate within-batch estimates and their uncertainty.
- Look for sparse or influential links. A bridge supported by very few donors can make a path-based contrast unstable.
- Check the experimental unit. Treating cells from the same donor as independent units can understate uncertainty and does not repair a weak allocation.
- Check the target estimand. A contrast averaged over a specified set of batches is not automatically the same as a universal condition effect.
Worked Example: Contrasts That Differ Across Batches
Suppose a hypothetical study observes A and B in two batches. In batch 1, their means are 5 and 7; in batch 2, their means are 8 and 7, respectively. Assume the observations within each batch are independent donor-level measurements.
The two within-batch B-minus-A contrasts are $$ \widehat{\Delta}_1=7-5=2,\qquad \widehat{\Delta}_2=7-8=-1 $$ outcome units. Their difference is \(2-(-1)=3\) units. Thus the observed pattern is not a single uniform contrast: the estimated direction changes across batches.
If the target were explicitly the equal-weight average of these two batch-specific contrasts, its estimate would be $$ \widehat{\Delta}_{\mathrm{equal}}=\frac{2+(-1)}{2}=0.5 $$ outcome units. That is an average of the two observed contrasts, not evidence that the effect is 0.5 units in each batch. Without sample sizes, within-batch variability, or a stated target population of batches, no uncertainty calculation or broader generalization follows from these means alone.
A common additive condition effect would require the discrepancy between 2 and -1 to be attributable to sampling variation. The allocation makes that assumption more assessable here because both conditions occur in both batches. If the discrepancy is too large to explain by sampling variation, a single adjusted condition effect may conceal important batch-specific differences.
Choosing an Analysis and Avoiding Overclaiming
There are three common strategies, each answering a somewhat different question. A within-batch analysis uses only batches containing both conditions. It is transparent and avoids estimating a contrast by bridging batches, but may discard useful data and may target only the subset of batches with overlap. An additive model uses all connected observations to estimate condition contrasts while adjusting for batch; it can improve precision or recover path-based comparisons, but its interpretation depends on the additive assumption. A model allowing condition-by-batch interaction permits different contrasts by batch, but needs adequate overlap and replication to estimate those differences; it cannot create information in unobserved condition-batch cells.
Choose between these approaches based on the scientific target and the allocation, not on which produces the most favorable result. If the target is a condition contrast among batches where both conditions were processed, a direct within-batch analysis may align naturally with that target. If the target is a common effect across batches, additive adjustment may be useful when the common-effect assumption is credible. If meaningful effects may differ by batch, report batch-specific contrasts or a clearly defined average rather than relying on one common effect.
A common mistake is to say, “The adjusted model includes batch, so the A-versus-C comparison is directly controlled for batch.” That reasoning confuses statistical adjustment with observed overlap. In the A-B, B-C allocation, the model can estimate A-versus-C only by combining the two links and assuming that the condition effects transport across batches. The correction is to state both the estimate and its support: direct within-batch evidence for the component contrasts, and model-dependent recovery for the end-to-end comparison.
Check Your Understanding
Answer each question, then compare with the solutions below.
- Conditions A and B occur together in batch 1; B and C occur together in batch 2. Which condition contrasts are direct, and which can only be reconstructed under an additive model?
- In batch 1, the mean outcome is 3 for A and 6 for B. In batch 2, it is 9 for B and 11 for C. Calculate the path-based estimate of C minus A and state its key assumption.
- Why can a condition contrast be directly estimated within one batch even when the batch effect is unknown?
- A and B are both observed in two batches, with B-minus-A estimates of 1 and 1.2 units. Does this prove there is no interaction? Explain.
- What is the limitation of using only batches that contain both conditions?
Solutions. (1) B-minus-A is direct in batch 1, and C-minus-B is direct in batch 2. C-minus-A is reconstructed by adding those contrasts and depends on the additive model, including a common condition effect across batches. (2) The path estimate is \((11-9)+(6-3)=2+3=5\) outcome units. It is model-dependent because A and C do not share a batch. (3) Subtracting the two within-batch expected outcomes cancels the common batch effect: \((\mu+\tau_B+\gamma_b)-(\mu+\tau_A+\gamma_b)=\tau_B-\tau_A\). (4) No. Similar point estimates are consistent with a common effect, but uncertainty and the possibility of other discrepancies must be considered; failure to detect a difference does not prove the effects identical. (5) It can discard observations and restrict the analysis to the overlapping batches, which may not represent the target set of batches or population.