Tutorials › Multiple Imputation by Chained Equations (MICE) › Diagnosing Imputed Survival Covariates Across Follow-Up

Survival and Time-Varying Data · Tutorial 413 of 497

Diagnosing Imputed Survival Covariates Across Follow-Up

Compare observed and imputed survival covariate distributions in the relevant follow-up and risk-set context, and interpret discrepancies as diagnostic clues rather than formal tests of validity.

Advanced 12 min read

What You'll Learn

  • Define observed and imputed covariate summaries within follow-up and event-status strata.
  • Calculate risk-set membership using entry and observed follow-up times.
  • Compare distributions across imputations without pooling raw values into one artificial data set.
  • Recognize warning patterns such as time-trend reversals, sparse strata and impossible post-exit values.
  • Explain why similar observed and imputed summaries are useful but do not establish model validity.
  • Distinguish descriptive diagnostics from model-based checks and inferential tests.

Why Diagnose Covariates in Survival Time

A survival covariate is not just a column of values. Its meaning depends on when it was measured and whether the person was still under observation and at risk at that time. A plausible imputation for a covariate measured early in follow-up may be implausible later; a distribution pooled across all visits can conceal that problem. Diagnostics should therefore compare observed and imputed values in time-specific groups and, where relevant, in the risk sets used by the survival analysis.

These comparisons are checks on the behavior of the imputation model, not tests that certify it as correct. Observed values and missing values can differ for legitimate reasons, including chance, covariate-dependent missingness, and differences in the people still under follow-up. The goal is to find patterns that merit investigation while preserving the time ordering and eligibility rules of the analysis.

Definition: Let \(X_{ik}\) be a covariate for person \(i\) at follow-up occasion or interval \(k\), and let \(R_{ik}=1\) if it was observed and \(R_{ik}=0\) if it was missing. In completed imputation \(j\), an imputed value fills each missing \(X_{ik}\); an originally observed value remains observed. A diagnostic compares observed values and imputed values within comparable follow-up, event-status, and risk-set groups. It does not replace the distinction between those two sources of values.

For a person with entry time \(L_i\), event or censoring time \(T_i\), and event indicator \(\delta_i\), define observed follow-up as \(\tilde T_i=\min(T_i,C_i)\) when \(C_i\) is the censoring time. Using the convention that a person is at risk immediately before an event at time \(t\), risk-set membership is

$$ Y_i(t)=I(L_i<t\leq \tilde T_i). $$

The strict inequality at entry and inclusive inequality at exit are a stated time convention; a discrete-time analysis may instead define eligibility by its interval-specific rules. Apply the convention used by the analysis consistently. A covariate value should be compared at the time to which it belongs, not assigned to an interval merely because it appears on the same row after data reshaping.

What to Compare, and Why

For each follow-up interval or meaningful time band, tabulate the number of observed and imputed values and compare their distributions. For a continuous covariate, useful summaries include means, medians, quantiles, ranges, and plots of the distribution. For a binary or categorical covariate, compare category counts and proportions. Examine these summaries separately by event status when that distinction is relevant and well represented. Then inspect the risk-set summaries at selected analysis times, using only records eligible to contribute at those times.

An observed–imputed comparison is most informative when the groups are comparable on predictors of the covariate and its missingness. Under a missing-at-random assumption conditional on observed information \(Z\), the indicator \(R\) of observation is conditionally independent of \(X\) given \(Z\). With positive probability of both observation and missingness at the relevant \(Z\) values, this implies:

$$ P(X\mid Z,R=0)=P(X\mid Z)=P(X\mid Z,R=1). $$

This gives a justification for looking for compatibility between observed and imputed distributions after accounting for relevant information. In practice, plots and tables use finite samples and often broad strata, so exact agreement is not expected. Nor does marginal agreement establish the conditional relationship above: a model can match an overall mean while missing a time trend, subgroup difference, or tail behavior.

Where several imputations were generated, calculate the diagnostic summaries within each completed data set. Look for a pattern that is stable across imputations, and note whether conclusions change materially from one completed data set to another. Do not concatenate the \(m\) completed data sets as if they contained \(m\) independent copies of the people; that would give artificial weight to the same individuals. Nor should the imputed values from different draws be averaged into a single completed data set for these checks.

Worked Example: Comparing a Continuous Covariate by Follow-Up Time

Suppose a hypothetical study records a continuous biomarker in units per litre at two follow-up intervals. In the first interval, the observed values have \(n=8\) and mean \(42\); the two missing values in that interval are imputed as \(38\) and \(44\). In the second interval, the observed values have \(n=5\) and mean \(55\); the two missing values are imputed as \(51\) and \(59\). Compare the observed and imputed means within intervals.

For the first interval, the imputed mean is \((38+44)/2=82/2=41\) units per litre. It is 1 unit per litre below the observed mean of 42. For the second interval, the imputed mean is \((51+59)/2=110/2=55\) units per litre, equal to the observed mean of 55.

The observed means rise from 42 to 55 units per litre across the intervals, and the imputed means rise from 41 to 55. This comparison does not reveal an obvious reversal of the time pattern. It is only a first check: the two imputed values in each interval provide little information about tails, and agreement of means does not show whether the imputation model captured within-person change or conditional associations.

For context, pooling observed values gives \((8\times42+5\times55)/13=611/13=47.0\) units per litre (to 3 significant figures). That pooled value conceals the interval-specific increase. It is therefore not an adequate substitute for the time-stratified comparison.

Event Status and Risk-Set Checks

Event status can help reveal whether imputed covariates behave differently among people who experience an event and those censored without an observed event. This is a diagnostic stratification, not a claim that event status defines a causal subgroup. Interpret any difference in light of the variables used in imputation and the different follow-up histories represented in each group. A difference may be expected; an unexplained reversal, implausible concentration, or systematic absence of variation deserves investigation.

Risk-set checks answer a different question: among records eligible to contribute at a particular time, do the observed and imputed covariate values have plausible distributions? This matters because people leave the risk set over time through events, censoring, or other exit rules, and some may enter after time zero. A changing risk-set distribution can arise from this changing membership, even when each person's covariate trajectory is reasonable. Do not interpret that compositional change by comparing risk-set summaries as if they were repeated measurements on an unchanged group.

Worked Example: A Binary Covariate by Event Status

In a hypothetical completed data set, consider a binary covariate indicating exposure during the relevant interval. Among people with an observed value, 6 of 20 who later experience the event are exposed; among imputed values in that event-status group, 4 of 10 are exposed. For people censored without an observed event, 12 of 30 observed values and 2 of 10 imputed values are exposed. Calculate and compare the proportions.

Among those who experience the event, the observed exposure proportion is \(6/20=0.300\), or 30.0%. The imputed proportion is \(4/10=0.400\), or 40.0%, a difference of 10.0 percentage points (imputed minus observed).

Among those censored, the observed proportion is \(12/30=0.400\), or 40.0%. The imputed proportion is \(2/10=0.200\), or 20.0%, a difference of \(-20.0\) percentage points. Thus, the directions of the observed–imputed differences are not the same across event-status groups.

This pattern is a reason to inspect the imputation model’s predictors, time alignment, and the underlying cell counts; it is not a formal finding that the imputations are wrong. Each imputed group contains only 10 values, so proportions can be unstable. Also check whether event status was incorporated appropriately in the imputation for the survival setting; this diagnostic alone cannot establish that it was.

Worked Example: Checking Membership at a Risk-Set Time

Consider nine hypothetical people at time \(t=6\) months. All entered before month 6 and had not exited before month 6, so all nine satisfy \(L_i<6\leq\tilde T_i\) and belong to the risk set at that time. Six have an observed covariate value of \(8, 9, 10, 10, 11,\) or \(12\) units; the other three have imputed values of \(9, 11,\) and \(14\) units. Calculate the group means for the risk-set diagnostic.

The observed-value mean is \((8+9+10+10+11+12)/6=60/6=10.0\) units. The imputed-value mean is \((9+11+14)/3=34/3=11.3\) units, to 3 significant figures. The imputed mean is 1.33 units above the observed mean.

If the imputed records were mistakenly treated as outside the risk set, or if values from people who exited before month 6 were included, this comparison would answer the wrong question. Membership must be determined from the entry and observed follow-up times, using the analysis convention. A difference of 1.33 units is a prompt to examine the distribution and model, not by itself evidence of bias: only three values are imputed, and the groups may differ on predictors.

Diagnostics, Alternatives, and Limits

Use tables and visual displays to make the comparisons easy to inspect. A compact table can report the number observed, number imputed, and separate summaries for each time-by-status stratum. For continuous covariates, overlay or juxtapose observed and imputed distributions using histograms, density displays, or boxplots, while retaining the time and status labels. For categorical covariates, show counts as well as proportions; the denominator is essential, especially in sparse cells. Repeat the check for several completed data sets rather than relying on a single draw.

Warning patterns include an imputed distribution outside the plausible range, a sharp change unsupported by observed trajectories, a trend that reverses across time, unexpected pile-up at a boundary, or large differences concentrated in an event-status or risk-set stratum. Check first that the units and measurement occasions match, that risk-set membership is correct, and that the counts are adequate. Then investigate whether the imputation model includes the relevant time structure, predictors, and survival information. An unusual pattern can also reflect sparse data or genuine selection into the risk set, so it is not automatically a modeling failure.

These descriptive checks complement, rather than replace, other approaches. Reviewing observed data alone cannot reveal the distribution of unobserved values. Model-based predictive checks ask whether simulated or imputed data reproduce features targeted by the model, but depend on the chosen model and checking statistics. Comparing survival-model estimates across completed data sets assesses inferential stability, not whether every imputed covariate trajectory is plausible. Formal tests of observed–imputed differences are generally a poor default: the groups are not randomly assigned, the imputed values depend on the observed data, and many time-by-status comparisons create opportunities for chance discrepancies.

Finally, diagnostics cannot verify the unobserved values directly or prove the missingness assumption. Similar summaries may coexist with incorrect conditional relationships, while different summaries may be justified by measured predictors. Use clinical and measurement knowledge to assess plausible ranges and trajectories, and use the diagnostics to identify specific features requiring explanation. A covariate value assigned after a person has left observation or after an event when it should no longer be defined is a data-structure problem, not something a reassuring pooled mean can fix.

A Short Derivation for Conditional Comparisons

The conditional comparison follows directly from the MAR condition. For a covariate value \(x\) and observed predictors \(z\), MAR states that observation status adds no information about \(X\) once \(Z\) is known. In conditional-distribution notation, \(X\) and \(R\) are independent given \(Z\). Therefore, for predictor values where both observed and missing records occur,

$$ P(X\mid Z=z,R=0)=P(X\mid Z=z) =P(X\mid Z=z,R=1). $$

If an imputation procedure correctly represents this conditional distribution, its draws for records with \(R=0\) should reproduce the relevant conditional distribution over repeated draws, apart from finite-sample and Monte Carlo variation. This is a justification for checking conditional patterns, not a proof that a particular imputation model is correct. If important predictors are omitted, the chosen time strata are too broad, or the model is incompatible with the data structure, the practical comparison may fail to expose the problem.

Key takeaway: Diagnose a survival covariate where and when it belongs: compare observed and imputed distributions by follow-up time, relevant event status, and correctly defined risk-set membership. Treat discrepancies as leads for investigation, not as standalone tests of validity.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. At a fixed time \(t\), what conditions define risk-set membership under the convention used here?
  2. In a time interval, 3 of 12 observed binary covariate values are positive and 4 of 8 imputed values are positive. Calculate both proportions and their difference in percentage points.
  3. Why can pooled observed and imputed means conceal a time-related problem?
  4. Does close agreement between observed and imputed summaries prove that the imputation model is valid? Explain.

Solutions. (1) Membership requires \(L_i<t\leq\tilde T_i\): entry is before \(t\), and observed follow-up reaches at least \(t\). (2) The observed proportion is \(3/12=0.250\), or 25.0%; the imputed proportion is \(4/8=0.500\), or 50.0%. The difference, imputed minus observed, is 25.0 percentage points. (3) Different intervals can have different covariate distributions and different numbers of records. Pooling weights those intervals together and can hide a reversal or an interval-specific discrepancy. (4) No. Marginal agreement can hide incorrect conditional relationships, and finite samples can agree by chance. Agreement is a useful diagnostic feature, not proof of correct specification or of a missingness assumption.

Clinical Biostats