Tutorials › Pattern-Mixture and Selection Models › Plotting Observed and Imputed Reference-Based Trajectories

Reference-Based Imputation for Clinical Trials · Tutorial 301 of 499

Plotting Observed and Imputed Reference-Based Trajectories

Build trajectory plots that show which outcomes were observed, which were imputed, and how reference-based assumptions shape the summaries across dropout patterns.

Advanced 10 min read

What You'll Learn

  • Distinguish observed-data means from means based on completed imputation datasets.
  • Label the observed and imputed portions of J2R and copy-reference trajectories.
  • Summarize imputations across multiple datasets without treating one imputation as certain.
  • Combine dropout-pattern means using the correct pattern weights.
  • Recognize when a pooled plot or missing uncertainty could mislead.

Why the Plot Must Show Where Outcomes Come From

A reference-based trajectory plot is not just a picture of means over visits. It represents both outcomes recorded in the trial and outcomes generated under assumptions for participants who dropped out. If those sources look identical, readers can mistake an imputation-based prediction for an observed result. If they are shown as unrelated curves without context, readers may miss that the imputed portion depends on the dropout pattern and the selected reference rule.

This tutorial concerns continuous outcomes measured at scheduled visits, with monotone dropout for ease of presentation: after a participant stops providing outcomes, later outcomes are missing. The plotting principles also apply when there are more complicated missingness patterns, provided the source of each plotted value is identified. J2R (jump to reference) and copy-reference (CR) imputations use the reference arm to model post-dropout outcomes for participants assigned to the treatment arm. Under J2R, the treatment benefit is assumed to be lost after dropout; under CR, post-dropout response behavior follows the reference-arm model, conditional on the specified history. The exact predictive distributions are determined by the reference-based imputation procedure.

Definition: Let \(Y_{ij}\) be the outcome for participant \(i\) at visit \(j\), and let \(K_i\) be the last visit with an observed outcome. A pattern-specific trajectory summarizes outcomes for participants with the same dropout pattern, such as \(K_i=k\). An observed-data mean at visit \(j\) uses only participants whose outcomes at that visit were observed. A completed-data mean uses observed outcomes and the imputed outcomes in one completed dataset. These are different summaries and should not be labelled interchangeably.

Before plotting, fix the outcome scale, visit labels, treatment-arm definition, analysis population, and reference arm. The imputation draws must follow the chosen J2R or CR procedure, including its treatment of parameter uncertainty and observed history. For a multiple-imputation plot, use the same participants and pattern weights across the imputation datasets. A plot cannot establish that the imputation assumptions are correct; it can make their consequences easier to see.

Choose a Display That Separates Observation and Imputation

A useful figure often has two panels. The first shows observed-data summaries by randomized arm and visit, with the number observed at each visit shown in the caption or beneath the axis. The second shows the model-based completed-data trajectory, with observed and imputed portions distinguished by line style or symbols. For example, use filled circles for observed means and open circles or dashed segments for post-dropout imputed means. Include a legend that defines the symbols in words, not only by color.

When dropout time matters, show pattern-specific curves or facets for \(K_i\), and identify the number of participants in each pattern. Mark the last observed visit for each pattern. Do not connect an observed mean for one changing group of participants directly to an imputed mean for a different group without indicating the change in source. For a summary across patterns, show how the pattern means are combined, or make the pattern-specific display available alongside the pooled curve.

For multiple imputation, calculate the plotted mean in each completed dataset and average those means. If uncertainty bands are shown, calculate them using a multiple-imputation variance procedure appropriate to the estimand; do not use the standard error from a single completed dataset as if the imputations were observed data. A pointwise interval at each visit is not a simultaneous band for the whole trajectory. State whether the displayed bands are pointwise and what population contrast or mean they describe.

Worked Example: Marking Observed and Imputed Segments

Suppose a hypothetical treatment arm has 40 participants who provide outcomes at baseline and visit 1, then drop out before visit 2. Their observed mean is 10.0 points at baseline and 8.0 points at visit 1. Under a specified J2R analysis, the average imputed visit-2 outcome for these participants is 6.4 points; under a specified CR analysis, it is 6.0 points. Higher scores indicate better health.

For each method, the pattern-specific plotted points are therefore (baseline, 10.0), (visit 1, 8.0), and (visit 2, 6.4) for J2R, or (baseline, 10.0), (visit 1, 8.0), and (visit 2, 6.0) for CR. The first two points are based on observed outcomes; the visit-2 point is based on imputations. The 0.4-point difference is a difference between these hypothetical model-based means, not a directly observed treatment-arm difference.

A clear display uses the same observed points for both methods, then distinguishes the imputed visit-2 points by method and by an open symbol or dashed segment. Its caption should say that the 40 participants had observed outcomes through visit 1 and that visit 2 is imputed. It should not call 6.4 or 6.0 the observed mean at visit 2.

Pooling Imputation Results and Dropout Patterns

With \(M\) imputed datasets, let \(Q_m\) be the mean or other plotted estimand calculated from completed dataset \(m\), and let \(U_m\) be its estimated variance within that dataset. The pooled point estimate is \(\bar Q=M^{-1}\sum_{m=1}^{M}Q_m\). The between-imputation variance describes how the estimates vary across completed datasets; it contributes to uncertainty because the missing outcomes were not known. For a mean, the usual Rubin-rule quantities are

$$ \bar U=\frac{1}{M}\sum_{m=1}^{M}U_m,\qquad B=\frac{1}{M-1}\sum_{m=1}^{M}(Q_m-\bar Q)^2,\qquad T=\bar U+\left(1+\frac{1}{M}\right)B. $$

Here \(T\) is the estimated total variance, so \(\sqrt{T}\) is the pooled standard error. This pooling separates within-imputation sampling uncertainty from variation across imputations. It is not correct to draw an uncertainty band from \(\bar U\) alone when \(B\) is nonzero. Degrees of freedom and interval construction should follow the inference procedure used for the analysis.

A pooled overall mean can also be expressed as a weighted average of pattern-specific means. If \(w_k\) is the proportion of the analysis population in dropout pattern \(k\), and \(\mu_{kj}\) is that pattern’s mean at visit \(j\), then the overall mean is \(\sum_k w_k\mu_{kj}\), with weights summing to one. This identity follows by partitioning the population into mutually exclusive patterns: the total outcome sum is the sum of the pattern-specific outcome sums, and division by the total sample size gives the weighted average. For imputed outcomes, the pattern means are model-based and should be labelled accordingly.

Worked Example: Pooling a Visit Mean Across Imputations

For a hypothetical treatment arm at visit 3, suppose five completed datasets give means \(4.8,\ 5.0,\ 4.9,\ 5.1,\) and \(5.2\) points. Suppose the estimated within-imputation variance is \(U_m=0.16\) points squared in each dataset.

The pooled mean is \(\bar Q=(4.8+5.0+4.9+5.1+5.2)/5=25.0/5=5.00\) points. The between-imputation variance is \(B=[(4.8-5.0)^2+(5.0-5.0)^2+(4.9-5.0)^2+(5.1-5.0)^2+(5.2-5.0)^2]/4\) \(=(0.04+0+0.01+0.01+0.04)/4=0.0250\) points squared. The average within-imputation variance is \(\bar U=0.16\).

Thus \(T=0.16+(1+1/5)(0.0250)=0.190\) points squared, and the pooled standard error is \(\sqrt{0.190}=0.436\) points. The plotted point is 5.00 points; if uncertainty is displayed, it must use the analysis’s multiple-imputation interval procedure rather than presenting 5.00 as exact. This calculation does not itself provide a confidence interval or a treatment comparison.

Worked Example: Reconstructing an Overall Mean From Patterns

Consider a hypothetical trial with three treatment-arm patterns at visit 3: 20% of participants dropped out after visit 1, 30% after visit 2, and 50% completed follow-up. Suppose their visit-3 mean outcomes under one reference-based analysis are 6.0, 6.8, and 7.0 points, respectively. These pattern means are assumed to have been calculated using observed outcomes where available and the relevant imputation draws otherwise.

The overall completed-data mean is the pattern-weighted mean: \(0.20(6.0)+0.30(6.8)+0.50(7.0)=1.20+2.04+3.50=6.74\) points. The weights total \(0.20+0.30+0.50=1.00\), as required. Thus, the plotted overall estimate at visit 3 is 6.74 points for this analysis.

If a second reference-based analysis gives pattern means 6.0, 6.5, and 7.0 points, using the same pattern weights, its overall mean is \(0.20(6.0)+0.30(6.5)+0.50(7.0)=1.20+1.95+3.50=6.65\) points. A plot can show these overall points, but a companion pattern-specific panel is more revealing: it shows that the difference between the two summaries comes from the pattern that dropped out after visit 2 in this hypothetical example. These numbers do not imply that the two methods must differ in this way in other data.

Diagnostics, Alternatives, and Limitations

Read the graph for both statistical and display problems. Check that visit labels and outcome units are consistent, observed counts decline as dropout accumulates, and the legend identifies which segments are imputed. Confirm that pattern weights correspond to the stated analysis population and add to one. Where a plot has many patterns, verify that rare patterns are not hidden by a single pooled line. Compare J2R and CR using the same population, visit scale, and display conventions; otherwise visual differences may reflect inconsistent summaries rather than the imputation rule.

The available-case observed-data plot is a useful descriptive reference, but its mean at each visit may represent a different subset as participants drop out. It is not automatically an estimate for the original randomized population. A single pooled completed-data curve is compact, but can conceal how dropout patterns contribute. Pattern-specific plots reveal that structure but can become crowded and imprecise when patterns are small. Tables can report exact means, sample sizes, and intervals more clearly, but are less effective at showing the timing of changes. These displays answer complementary questions; none removes dependence on the missing-data assumptions.

A common mistake is to draw one uninterrupted line and label every point “observed mean.” The reasoning is that all points are means for the same randomized arm, so they seem comparable. The correction is to identify the source at every visit: some later values may be imputed, and the observed-data means may use changing subsets. Use distinct symbols or panels, state the analysis population, and explain whether the plotted trajectory is observed-only, pattern-specific, or pooled across completed datasets.

Plots are descriptive summaries of the data and imputation model, not tests of the assumptions. A smooth curve does not validate a reference-based procedure, and a visible difference between J2R and CR does not by itself establish which assumption is more plausible. Averages can also conceal skewness, extreme imputed values, or substantial variation within a pattern. Pair trajectory plots with numerical summaries and distributional checks suited to the outcome and analysis.

Key takeaway: A trustworthy reference-based trajectory plot makes three things visible: the observed history, the imputed post-dropout outcomes, and the way pattern-specific results are combined. Labeling all three prevents a model-based prediction from being mistaken for trial observation.

Check Your Understanding

Answer each question, then compare with the brief solution.

  1. A visit-4 mean is calculated only among participants who attended visit 4. Is it automatically the mean for the randomized arm? Solution: No. It is an observed-data mean for participants with visit-4 outcomes. Dropout may make that group different from the full randomized arm.
  2. Five imputation-specific estimates are 3.0, 3.1, 3.0, 3.2, and 3.2 points. What is their pooled point estimate? Solution: Their average is \((3.0+3.1+3.0+3.2+3.2)/5=15.5/5=3.10\) points.
  3. Two dropout patterns have weights 0.4 and 0.6, with visit-3 means 5 and 7 points. Find the overall mean. Solution: \(0.4(5)+0.6(7)=2.0+4.2=6.2\) points; the weights sum to one.
  4. What visual distinction should be made when a trajectory changes from observed to imputed outcomes? Solution: Use clearly defined symbols, line styles, or panels to identify observed and imputed portions, and state the dropout pattern or analysis population represented.
  5. Why is an interval based only on within-imputation variance inadequate when imputations differ? Solution: It omits between-imputation variation. Multiple-imputation total variance includes both the average within-imputation variance and an additional component reflecting differences across imputations.
Clinical Biostats