Why Group Ranges Matter
An interaction model can give each group its own fitted line, but the predictor values represented in the data may differ substantially among groups. One group might be observed mostly at low doses and another mostly at high doses. A fitted line can still produce predictions for both groups at any chosen predictor value, but some of those predictions may lie beyond the values actually observed for one group. Such comparisons rely more heavily on the model’s assumed line shape than on direct data support.
The key diagnostic is range overlap: the extent to which groups have observed predictor values in common. Overlap helps distinguish comparisons made where both groups are represented from comparisons that extend beyond one or more groups’ observed data. It does not, by itself, prove that a comparison is reliable or causal. It clarifies what part of a line comparison is supported by the observed predictor ranges.
Group-Specific Lines and Observed Ranges
For a quantitative response \(Y\), predictor \(x\), and group \(g\), a group-specific linear regression model can be written as
Here, \(a_g\) is the intercept for group \(g\), \(b_g\) is its slope, and \(\varepsilon_{ig}\) is the error for observation \(i\) in that group. The fitted line is \(\widehat{Y}_g(x)=\widehat{a}_g+\widehat{b}_gx\). Its slope describes the fitted change in response for a one-unit increase in \(x\), within that group, under the linear model.
For two groups with ranges \([L_1,U_1]\) and \([L_2,U_2]\), their common range is \([\max(L_1,L_2),\min(U_1,U_2)]\), provided the lower endpoint is no greater than the upper endpoint. If it is greater, the ranges do not overlap. With more groups, the same idea applies: the common range begins at the largest lower endpoint and ends at the smallest upper endpoint.
A linear model’s usual working assumptions include that the mean response is adequately represented by a line within each group and that errors have mean zero and are independent across observations. Constant error variance is commonly assumed for standard regression inference; normal errors may also be used for exact small-sample inference. These assumptions do not make extrapolation equivalent to observing data at the extrapolated values. Rather, outside a group’s observed range, the prediction depends on the assumed linear pattern continuing there.
Finding and Interpreting the Shared Range
Before comparing fitted lines at a predictor value, check whether that value falls in the observed range of every group in the comparison. If so, the comparison is within the observed ranges. If not, at least one fitted outcome is extrapolated. With several groups, a value can lie in the overlap of one pair but outside the range of another group; the relevant overlap depends on which groups are being compared.
For each group, identify the smallest and largest observed predictor values. Keep the predictor’s units attached to the endpoints.
For the groups in the intended comparison, take the largest lower endpoint and the smallest upper endpoint. If the first exceeds the second, there is no common range.
Check whether it is inside each group’s range. State explicitly if one or more fitted outcomes require extrapolation.
Describe what the fitted lines imply, while distinguishing a model-based extrapolated contrast from a comparison made where both groups were observed.
Worked Example: One Group’s Prediction Is Extrapolated
Suppose a hypothetical study records an outcome in points and a predictor in hours for two groups. Group A has observed predictor values from 0 to 10 hours, while Group B has values from 8 to 18 hours. Their hypothetical fitted lines are \(\widehat{Y}_A(x)=20+2x\) and \(\widehat{Y}_B(x)=28+x\). Identify the shared range and compare the fitted outcomes at 9 hours and 5 hours.
The common range is found from the larger lower endpoint and the smaller upper endpoint:
At 9 hours, both groups are within their observed ranges. The fitted outcomes are
The fitted difference, Group B minus Group A, is \(37-38=-1\) point. This is a comparison within the observed ranges of both groups. It describes the fitted lines at 9 hours, not necessarily the difference between observed group averages.
At 5 hours, Group A is within its range but Group B is not, because Group B’s observations start at 8 hours. The calculations are
The fitted difference is \(33-30=3\) points, but Group B’s fitted outcome at 5 hours is extrapolated. It is therefore important to report that the 3-point contrast depends on extending Group B’s fitted line below its observed range; the data do not directly show Group B outcomes at 5 hours.
Why Comparisons Outside the Overlap Can Mislead
The fitted difference between two groups at a chosen value of \(x\) is obtained by subtracting their fitted lines. For groups 1 and 2,
This expression is a difference between model predictions. Its arithmetic is valid wherever the lines are evaluated, but its empirical support varies with \(x\). Within the groups’ common range, both fitted outcomes are evaluated where observations occurred for each group. Outside that range, at least one line is being extended beyond its group’s observed data.
This distinction matters for both slope and group contrasts. A slope is estimated from how outcomes vary over the predictor values observed in that group. A group observed over a narrow range may provide little information about how its line behaves far outside that range. Similarly, two lines may cross at a value where one group has no observations. The crossing is then a feature of the fitted equations, not evidence that observed responses for the groups actually switch order at that value.
No overlap does not make a regression calculation impossible, and overlap alone does not guarantee a sound comparison. Model-based comparisons outside observed ranges may be defensible when the linear form is well supported by subject-matter knowledge and other evidence. But the conclusion should identify the extrapolation and should not present it as if both groups had been observed at the same predictor values.
Worked Example: A Line Crossing Beyond Shared Support
Consider hypothetical observations for Group A from 0 to 4 units of \(x\), and for Group B from 10 to 14 units. Suppose their fitted outcome lines, with outcome measured in units, are \(\widehat{Y}_A(x)=12+3x\) and \(\widehat{Y}_B(x)=32+x\). Find the fitted crossing point and assess what it supports.
At a crossing, the fitted outcomes are equal. Set the lines equal and solve:
At \(x=10\), the two fitted outcomes are both \(42\) units: \(12+3(10)=42\) and \(32+10=42\). However, Group A was observed only from 0 to 4 units of \(x\), so its fitted outcome at 10 is extrapolated. Group B’s range starts at 10, but there is no common range: the largest lower endpoint is 10 and the smallest upper endpoint is 4, and \(10>4\).
The equations cross at \(x=10\), but the observed data do not support a direct comparison of the groups at that value. For illustration, at the center of Group A’s observed range, \(x=2\), its fitted outcome is \(12+3(2)=18\) units, while Group B’s extrapolated fitted outcome is \(32+2=34\) units. At \(x=12\), within Group B’s range, its fitted outcome is \(32+12=44\) units, while Group A’s extrapolated fitted outcome is \(12+3(12)=48\) units. These model calculations should not be read as observed group contrasts at either value, because each comparison extrapolates one group’s line.
Thus, the algebra establishes where the fitted lines cross, but the crossing does not establish that the groups have equal outcomes at a well-supported common predictor value. The interpretation must mention that there is no overlap and that both cross-group comparisons rely on extrapolation.
Narrow Overlap and Unequal Ranges
A small overlap is different from no overlap. With a small overlap, comparisons inside that interval are interpolations for both groups, but the shared values cover only a limited part of each group’s predictor range. A comparison at one point in the overlap may be meaningful as a model-based contrast there, but it should not automatically be generalized to lower or higher predictor values that are not shared.
Unequal ranges can also make the lines differently anchored by observed data. One group’s slope may be estimated across a broad predictor span while another’s is estimated across a narrow span. Even if both fitted lines are straight, their apparent behavior outside the narrow group’s range is particularly dependent on extending its estimated line. The range check describes this limitation; it does not replace an assessment of model fit or statistical uncertainty.
Worked Example: Interpreting a Narrow Common Range
In a hypothetical data set, Group A is observed from 0 to 12 hours and Group B from 9 to 11 hours. Suppose fitted lines for an outcome measured in points are \(\widehat{Y}_A(x)=5+2x\) and \(\widehat{Y}_B(x)=9+1.5x\). Find the common range and compare the fitted outcomes at 10 hours and 5 hours.
The common range is
At 10 hours, both groups are within their observed ranges:
The fitted difference, Group B minus Group A, is \(24-25=-1\) point at 10 hours. This is within the common range. But the shared range spans only 2 hours, from 9 to 11; it does not support treating the same group contrast as established across the much wider range from 0 to 12 hours.
At 5 hours, Group A’s prediction is \(5+2(5)=15\) points. Group B’s fitted prediction is \(9+1.5(5)=16.5\) points, but 5 hours lies below Group B’s observed minimum of 9 hours. The resulting fitted difference is \(16.5-15=1.5\) points, with Group B’s outcome extrapolated. It would be misleading to present this as a comparison based on both groups’ observed data at 5 hours.
A Short Justification for the Range Check
The need to check the range follows directly from what a fitted line represents. Within group \(g\), the fitted value at \(x\) is calculated as \(\widehat{a}_g+\widehat{b}_gx\), using the estimated intercept and slope. If \(x\) is outside the observed range, there are no observations from that group at or beyond that end of the range to anchor the line there. The prediction still follows from the fitted equation, but its interpretation requires the line to continue beyond the observed predictor values.
For two groups, subtracting their fitted values gives the group contrast shown earlier. If both groups were observed at \(x\), the contrast is evaluated within both observed ranges. If only one was observed there, the corresponding term in the subtraction is an extrapolated fitted value. Therefore, checking each group’s range before interpreting a difference identifies exactly which part of the comparison relies on extrapolation.
Common Mistakes
- Calling any computed contrast an observed comparison. A fitted equation can produce a contrast outside a group’s range, but that does not mean the group was observed at that predictor value. Name the extrapolation.
- Treating a line crossing as a demonstrated reversal. If the crossing lies outside the groups’ common range, it is a model-based crossing, not evidence of a reversal where both groups were observed.
- Assuming some overlap supports every comparison. A comparison at a value outside even one group’s range still extrapolates for that group, despite overlap elsewhere.
- Assuming overlap guarantees a trustworthy model. Overlap addresses range support, not whether the linear form fits, errors meet the assumptions for inference, or the data support a causal claim.
Check Your Understanding
For each question, state which group ranges support the proposed comparison and explain any extrapolation.
- Group A is observed from 2 to 8 units of \(x\), and Group B from 6 to 12. What is their common range? Is a fitted comparison at \(x=5\) within both ranges?
- Two fitted lines cross at \(x=4\), but the groups have ranges 0 to 3 and 7 to 10. What does the crossing establish, and what does it not establish?
- Why does a narrow common range not justify treating a fitted group difference as supported across both groups’ entire predictor ranges?
- Can a fitted prediction outside a group’s observed range be calculated? Explain why calculating it does not make it an observed group outcome.
- What does range overlap tell you about a comparison, and which aspects of model adequacy does it not settle?