Why Check Fit Within Important Groups?
A pooled observed-imputed plot can look reassuring while concealing a mismatch in a group that matters for the analysis. For example, imputed values might be systematically too high in one age group and too low in another. If those shifts offset each other, the overall distribution may show little difference. A subgroup check asks whether the observed and imputed distributions tell a similar descriptive story within each substantively important group.
The groups should be chosen because they matter for the scientific question, clinical interpretation, or analysis—not simply because many possible partitions are available. Examples include treatment arm, age category, study site, or a clinically meaningful severity group. The earlier material on stratifying observed-imputed comparisons by predictors introduces stratified displays; the emphasis here is on assessing whether fit is adequate across important groups and interpreting what pooled summaries can conceal.
This is a descriptive diagnostic, not a direct test of whether the imputation model is correct. The observed values are not necessarily representative of the missing values, even within a group. Thus, a difference may reflect selection into missingness, an imputation-model problem, or both. Conversely, similar plots do not establish that the imputed values are valid.
How Pooling Can Hide a Subgroup Pattern
A distribution in the full observed set is a mixture of the group-specific observed distributions. The corresponding imputed distribution is a mixture of the group-specific imputed distributions. The mixture weights need not be the same: the proportion of observed cases in each group can differ from the proportion of missing cases in each group.
Here \(F_{\mathrm{obs},g}(y)\) and \(F_{\mathrm{imp},g}(y)\) are the within-group cumulative distributions, and the weights \(w_{\mathrm{obs},g}\) and \(w_{\mathrm{imp},g}\) are the group proportions in the observed and missing sets, respectively. This identity explains two distinct ways a pooled plot can mislead: within-group differences can offset one another, and different group compositions can affect the pooled comparison.
When comparing groups, keep the scale and plotting choices consistent. For a continuous variable, side-by-side boxplots or density displays can reveal shifts, spread changes, tail differences, or shape differences. For categorical variables, side-by-side proportion displays show which categories differ. Earlier material covers these display types and variable-specific features; the key here is to read them within each important group before summarizing across groups.
Worked Example: Opposite Binary Discrepancies Cancel in the Pooled Plot
Suppose a hypothetical diagnostic examines whether a binary outcome is positive in two equally sized groups. In each group there are 100 observed values and 100 imputed values. The positive counts are:
| Group | Observed positive | Imputed positive |
|---|---|---|
| Group A | 20 of 100 | 40 of 100 |
| Group B | 80 of 100 | 60 of 100 |
Within Group A, the observed proportion is \(20/100=0.20\), while the imputed proportion is \(40/100=0.40\), a difference of \(0.40-0.20=0.20\), or 20 percentage points. Within Group B, the observed proportion is \(80/100=0.80\), while the imputed proportion is \(60/100=0.60\), a difference of \(0.60-0.80=-0.20\), or minus 20 percentage points.
Now pool the two groups. The observed positive proportion is \((20+80)/(100+100)=100/200=0.50\). The imputed positive proportion is \((40+60)/(100+100)=100/200=0.50\). The pooled proportions are identical, even though both groups show a substantial discrepancy in opposite directions.
The pooled plot would miss the group-specific pattern. The within-group plot shows where the differences occur. It does not, by itself, tell us why they occur or establish that the imputed values are wrong; those conclusions require considering the missingness process, model specification, and scientific context.
Read the Group-Specific Patterns Before the Overall Pattern
A practical check is to inspect each prespecified group separately and then consider the pooled display. In each group, ask whether the distributions are similar in location, spread, shape, and relevant features such as bounds or tail behavior. A difference should be described in context: for example, “the imputed values have a higher upper tail in the severe-disease group,” rather than “the imputation is biased,” unless a suitable basis for that stronger claim exists.
The group label must be available and defined consistently for observed and missing cases. If the group itself is missing, a display stratified by that group cannot be interpreted straightforwardly without addressing how the group was handled. Also ensure that groups are not so finely divided that observed values provide little information. A plot with only a few observations may look irregular simply because it is based on little data; it may be difficult to distinguish a real pattern from random variation.
Worked Example: Opposing Shifts in a Continuous Outcome
Consider hypothetical observed and imputed values for a laboratory measurement, in units per litre, in two equally sized groups. For a compact numerical check, each group has five values in each set:
| Group | Observed values | Imputed values |
|---|---|---|
| Younger | 2, 3, 4, 5, 6 | 3, 4, 5, 6, 7 |
| Older | 10, 11, 12, 13, 14 | 8, 9, 10, 11, 12 |
In the younger group, the observed median is 4 and the imputed median is 5, so the imputed median is 1 unit per litre higher. In the older group, the observed median is 12 and the imputed median is 10, so the imputed median is 2 units per litre lower.
The pooled observed values, in order, are 2, 3, 4, 5, 6, 10, 11, 12, 13, 14. Their median is \((6+10)/2=8\) units per litre. The pooled imputed values are 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, with median \((7+8)/2=7.5\) units per litre. The pooled median difference is only \(7.5-8=-0.5\) units per litre. That modest pooled difference does not represent either within-group pattern well: the younger group shifts upward, while the older group shifts downward.
A paired set of group-specific boxplots would make the opposing directions visible. The numerical summaries here identify the median changes; the full plots should also be inspected for changes in spread or shape. Because these hypothetical groups contain only five values per set, no strong conclusion about distributional fit would be justified from the example alone.
Assessing a Clinically Important Tail Within Groups
Not every useful subgroup check needs to compare an entire distribution visually. If a particular feature matters scientifically, such as an unusually high value, inspect that feature within each group and show the relevant denominator. This can prevent a pooled display from obscuring a discrepancy concentrated in a smaller but important group. It is still a descriptive check: it does not establish that observed cases represent missing cases in that subgroup.
Worked Example: A High-Value Feature Concentrated in One Group
In a hypothetical study, a value above 10 units is considered clinically important. Among observed values, 18 of 60 in the rural group and 20 of 140 in the urban group exceed 10. Among imputed values, 30 of 60 rural values and 21 of 140 urban values exceed 10.
For the rural group, the observed proportion above 10 is \(18/60=0.300\), or 30.0%. The imputed proportion is \(30/60=0.500\), or 50.0%, a difference of 20.0 percentage points. For the urban group, the observed proportion is \(20/140\approx0.143\), or 14.3%; the imputed proportion is \(21/140=0.150\), or 15.0%, a difference of about 0.714 percentage points.
The pooled observed proportion is \((18+20)/(60+140)=38/200=0.190\), or 19.0%. The pooled imputed proportion is \((30+21)/200=51/200=0.255\), or 25.5%. The pooled difference is 6.5 percentage points, but it does not describe the contrast in either group: the notable difference is concentrated in the rural group.
A display of this feature by group would prompt review of the rural-group imputation model and of the information available for rural cases. It would not justify changing the imputation model automatically, because the observed and missing cases may differ in ways not captured by this comparison.
Assumptions, Diagnostics, and Limits
These plots are most interpretable when the selected groups have substantive meaning, group membership is defined consistently, and the same variable scale is used for observed and imputed values. For numerical comparisons such as proportions, report both the numerator and denominator so a percentage based on a small group is not mistaken for a stable pattern. When multiple imputations are available, do not treat the imputed values from one completed data set as the full representation of imputation variability. Examine whether the visual pattern is broadly similar across imputations rather than relying on a single realization.
Several warning signs merit closer review: a conspicuous within-group shift; opposite shifts across groups that disappear in the pooled plot; a group with implausible values or a different shape; or a plot whose conclusion changes substantially across imputations. These patterns are prompts for investigation, not automatic evidence of a specific failure. Review whether the imputation model allows relevant group relationships and whether group-specific information is adequate. Avoid adding many unplanned subgroup displays and then interpreting isolated differences as discoveries.
A pooled plot remains useful for describing the overall observed and imputed sets, but it cannot replace subgroup checks when the groups matter to the analysis. Conversely, subgroup plots do not replace other diagnostics: they do not assess associations between variables, prove that the missingness mechanism is handled adequately, or verify imputation accuracy for values that are unobserved. Their role is narrower and valuable: to reveal whether an overall comparison conceals a pattern in an important group.
Check Your Understanding
Answer each question, then compare with the solutions below.
- In a subgroup, 12 of 40 observed binary values and 20 of 40 imputed values are positive. Calculate both proportions and their difference in percentage points.
- Two groups show observed-imputed differences of +0.15 and −0.15 in a binary proportion. If the groups have equal denominators, what might the pooled comparison show, and what would it fail to show?
- Why might a pooled comparison differ when within-group distributions are similar, even if there is no visible within-group discrepancy?
- Name two reasons a subgroup plot should be treated cautiously.
Solutions. (1) The observed proportion is \(12/40=0.30\), and the imputed proportion is \(20/40=0.50\); the difference is \(0.50-0.30=0.20\), or 20 percentage points. (2) With equal denominators, the opposite differences can cancel, producing little or no pooled difference; that pooled result would fail to show the discrepancies within either group. (3) The group proportions can differ between the observed set and the missing set, so the pooled mixtures use different weights even when within-group distributions are similar. (4) For example, a group may have very few observed values, making its displayed distribution unstable, or the pattern may vary across imputations. These limitations mean the plot is a prompt for review, not a definitive test.