Tutorials › Pattern-Mixture and Selection Models › Observed-Data Residual Checks Across MNAR Candidates

Comparing Alternative MNAR Models · Tutorial 183 of 499

Observed-Data Residual Checks Across MNAR Candidates

Use model-implied observed-outcome distributions to find shared or candidate-specific fit problems without mistaking residual agreement for evidence about missing outcomes.

Advanced 13 min read

What You'll Learn

  • Define residuals from observed-data conditional distributions under each candidate MNAR model.
  • Use standardized and quantile residuals to check location, spread, and distributional shape.
  • Examine residuals by response pattern, time, observed history, and covariates.
  • Compare candidate-specific discrepancies while accounting for dependence and parameter estimation.
  • Distinguish observed-data fit diagnostics from conclusions about missing outcomes or MNAR assumptions.
  • Recognize small-sample, masking, and conditional-distribution limitations.

Why Check Residuals Across MNAR Candidates?

Competing missing-not-at-random (MNAR) models can imply different distributions for missing outcomes while fitting the observed data similarly. The earlier material on observed-data fit and fit agreement versus extrapolation agreement makes this distinction central: residual checks provide a way to inspect the observed outcomes for structure that a candidate has not captured. They can reveal a problem shared by several candidates, or a discrepancy that is more pronounced for one candidate.

The diagnostic target is the model-implied distribution of outcomes that were actually observed, conditional on the relevant covariates and response pattern. A residual check does not require this distribution to be correct. Rather, the model must specify such a distribution so its implications can be compared with the observed values; whether those implications are adequate is what the diagnostic helps assess. A good-looking residual plot is not proof that the MNAR assumptions for unobserved outcomes are correct.

Definition: For candidate model \(M_k\), let \(Y_{ij}\) be an observed outcome for subject \(i\) at occasion \(j\), \(R_i\) denote that subject’s response pattern, and \(\mathbf{x}_i\) denote relevant covariates. A residual is a discrepancy between an observed value and a feature of the model-implied conditional distribution of that value, such as its conditional mean or conditional quantiles. The conditioning must account for \(R_i\), relevant covariates, and—when a sequential decomposition is used—the earlier outcomes observed for that subject.

Constructing Residuals From the Observed-Data Model

Write the observed outcome vector for subject \(i\) as \(\mathbf{Y}_{i,\mathrm{obs}}\). A candidate model specifies an observed-data distribution such as \(p_k(\mathbf{Y}_{i,\mathrm{obs}}\mid R_i,\mathbf{x}_i;\theta_k)\), where \(\theta_k\) denotes its parameters. This distribution is implied by the candidate MNAR model, including its assumptions about missing outcomes; it is not simply the outcome distribution among completers. In practice, the distribution or its relevant conditional components are evaluated at fitted parameter estimates.

For a continuous outcome, one useful residual at occasion \(j\) is the standardized conditional residual \(z_{ij}^{(k)}=(Y_{ij}-\widehat{\mu}_{ij}^{(k)})/\widehat{\sigma}_{ij}^{(k)}\). Here \(\widehat{\mu}_{ij}^{(k)}\) and \(\widehat{\sigma}_{ij}^{(k)}\) are the candidate’s fitted conditional mean and standard deviation for this observed outcome, with the conditioning made explicit. In a longitudinal setting, the joint observed-data distribution can be factored into successive conditional distributions. A residual for an observed occasion can then condition on the response pattern, covariates, and the subject’s earlier observed outcomes. This avoids treating a whole trajectory as if its components were unrelated.

When the conditional distribution is not adequately summarized by a mean and variance, a quantile residual is often more informative. For a continuous outcome, let \(\widehat{F}_{ij}^{(k)}\) be the candidate’s fitted conditional cumulative distribution function evaluated at the observed value. Then \(q_{ij}^{(k)}=\Phi^{-1}(\widehat{F}_{ij}^{(k)}(Y_{ij}))\), where \(\Phi^{-1}\) is the standard normal quantile function. If the specified conditional distribution is correct and its parameters are known, the probability integral transform is uniform, so these quantile residuals have a standard normal distribution. With estimated parameters and dependent repeated outcomes, that reference is approximate, not an exact independent-sample rule.

Key diagnostic principle: Under an adequately specified candidate, standardized residuals should not show systematic location, spread, shape, time, pattern, or covariate structure beyond what sampling variation can plausibly explain. This is a diagnostic expectation, not a requirement that a finite-sample residual mean equal zero or residual variance equal one exactly.

Worked Checks by Pattern and Candidate

Worked Example: A Spread Problem Shared by Two Candidates

Suppose six hypothetical subjects each have one observed continuous outcome. Three have complete response pattern \(R=C\), with outcomes 8, 10, and 12 units; three have dropout pattern \(R=D\), with outcomes 5, 7, and 9 units. Two MNAR candidates imply the same observed-data conditional distributions: for \(R=C\), a normal distribution with mean 10 units and standard deviation 1 unit; for \(R=D\), a normal distribution with mean 7 units and standard deviation 1 unit. The candidates differ in their assumptions about unobserved outcomes, not in these observed-data distributions.

The standardized residual is \(z=(y-\widehat{\mu})/\widehat{\sigma}\). For the complete-pattern observations it gives \((8-10)/1=-2\), \((10-10)/1=0\), and \((12-10)/1=2\). For the dropout-pattern observations it gives \((5-7)/1=-2\), \((7-7)/1=0\), and \((9-7)/1=2\). Thus each candidate has six residuals \(-2,0,2,-2,0,2\).

Within either pattern, the mean residual is \((-2+0+2)/3=0\), but the sample standard deviation is \(\sqrt{((-2)^2+0^2+2^2)/2}=2\), twice the model-implied standard deviation on the standardized scale. Repeated extreme residuals in both patterns are a potential sign that both candidates understate observed-outcome variability. With only three subjects per pattern, this is a warning to investigate, not a decisive test of misspecification. Since the candidates have identical observed-data distributions here, these residuals cannot distinguish their MNAR extrapolations.

Worked Example: Comparing Conditional Residuals at a Follow-Up Occasion

Consider three hypothetical subjects with complete observed follow-up. Their earlier outcomes \(Y_{i1}\) are 18, 20, and 22 units, and their follow-up outcomes \(Y_{i2}\) are 17, 20, and 23 units. For illustration, candidate A specifies \(Y_{i2}\mid Y_{i1},R_i,\mathbf{x}_i\sim N(20+0.5(Y_{i1}-20),4)\), and candidate B specifies \(Y_{i2}\mid Y_{i1},R_i,\mathbf{x}_i\sim N(20+0.8(Y_{i1}-20),4)\). The second argument of \(N\) is the variance, so both conditional standard deviations are \(\sqrt{4}=2\) units.

For candidate A, the three conditional means are 19, 20, and 21 units. The standardized residuals are \((17-19)/2=-1\), \((20-20)/2=0\), and \((23-21)/2=1\). For candidate B, the means are 18.4, 20, and 21.6 units, giving \((17-18.4)/2=-0.70\), \(0\), and \((23-21.6)/2=0.70\). The residuals are centered for both candidates in this small illustration, while candidate B produces smaller residual magnitudes.

That arithmetic alone does not establish that B is preferable: there are only three subjects, the observations within each trajectory are related, and parameter estimation is not represented in these illustrative distributions. A useful plot would show these conditional residuals against earlier outcome and perhaps separate symbols by response pattern. The displayed calculation concerns observed follow-up outcomes among the stated pattern; it says nothing directly about the unobserved follow-up outcomes of subjects who dropped out.

Reading Residual Structure

Residuals are most useful when plotted or summarized against quantities that could reveal a specific failure. Include the response pattern in the display or facet the plot by pattern, particularly when the candidate’s conditional distribution depends on pattern. In longitudinal data, examine residuals by occasion and, where appropriate, against earlier observed outcomes. Against covariates, look for systematic location changes, curvature, changing spread, or clusters. A residual-versus-fitted plot can expose a mean-variance relationship that a single overall residual summary hides.

A sequential residual plot needs careful interpretation. If a residual at occasion \(j\) is conditional on earlier observed outcomes, a trend against one of those outcomes can indicate that the candidate’s conditional mean or variance is inadequate. Residuals from the same subject are not automatically independent, however. Nor should residuals from different response patterns be pooled without checking whether their conditional distributions and scales are comparable. Summaries such as the mean, standard deviation, and proportion with \(|z|>2\) are descriptive aids, not universal pass-fail cutoffs.

Worked Example: Detecting a Covariate Pattern

Suppose four hypothetical subjects all have their outcome observed under the same response pattern. Their covariate values are \(x=0,1,2,3\), and their observed outcomes are 49, 53, 57, and 61 units. Candidate A specifies a conditional mean of \(50+2x\) units and a standard deviation of 4 units for each observation. Candidate B specifies a conditional mean of \(49+3x\) units and the same standard deviation. Assume these are the candidates’ fitted conditional distributions for the pattern and covariate values in this illustration.

Candidate A predicts 50, 52, 54, and 56 units. Its raw residuals \(y-\widehat{\mu}\) are \(-1,1,3,5\) units, and its standardized residuals are \(-1/4,1/4,3/4,5/4\), or \(-0.25,0.25,0.75,1.25\). The residuals increase steadily with \(x\), suggesting that candidate A’s conditional mean may not capture the covariate trend.

Candidate B predicts 49, 52, 55, and 58 units. Its raw residuals are \(0,1,2,3\) units, and its standardized residuals are \(0,0.25,0.50,0.75\). These also increase with \(x\), although less sharply. The residual plot therefore raises a slope-related concern for both candidates, with a more pronounced pattern for A in these data. Four observations cannot establish the correct slope or select an MNAR mechanism; the calculation illustrates how a structured residual pattern can identify a shared area of possible inadequacy.

Justification and Assumptions

The rationale for standardized residuals follows directly from conditional expectation and variance. For a specified conditional distribution under candidate \(M_k\), suppose the conditional mean and variance at an observed occasion are \(\mu_{ij}^{(k)}\) and \((\sigma_{ij}^{(k)})^2\). If that conditional distribution describes the data-generating distribution, then \(E(Y_{ij}\mid\text{conditioning})=\mu_{ij}^{(k)}\) and \(\operatorname{Var}(Y_{ij}\mid\text{conditioning})=(\sigma_{ij}^{(k)})^2\). Consequently, for a residual standardized using the true quantities,

$$ E\left[\frac{Y_{ij}-\mu_{ij}^{(k)}}{\sigma_{ij}^{(k)}}\middle|\text{conditioning}\right]=0,\qquad \operatorname{Var}\left[\frac{Y_{ij}-\mu_{ij}^{(k)}}{\sigma_{ij}^{(k)}}\middle|\text{conditioning}\right]=1. $$

This follows by subtracting the conditional mean and dividing the conditional variance by \((\sigma_{ij}^{(k)})^2\). It justifies checking residual location and scale, but does not imply normality unless the conditional distribution is normal. In actual diagnostics, fitted parameters replace the true quantities, so residuals may have altered variability and dependence. A small or highly parameterized sample can also make plots appear deceptively orderly.

The practical assumptions are therefore modest but important: the candidate must specify a usable observed-data conditional distribution for the outcomes being checked; the response-pattern definition, covariates, and conditioning history must be represented correctly in the calculation; and the observed values and fitted distributions must be aligned on the same scale and occasion. These are requirements for constructing a meaningful diagnostic, not claims that the distribution is already correct. If a model fails to provide the needed conditional distribution or it is computed under the wrong pattern or covariate values, the resulting residuals do not check the intended model.

What These Checks Can and Cannot Establish

Compare candidates by asking whether they show the same systematic residual features and whether any feature is concentrated in a particular pattern, occasion, or covariate range. A shared discrepancy suggests that changing only the MNAR extrapolation assumption may not solve the observed-data fit problem. A discrepancy limited to one candidate can help explain why its observed-data implications differ. Conversely, similar residual displays mean only that these diagnostics have not exposed a difference in observed-data fit; they do not establish that the candidates have the same missing-outcome distributions.

Residual checks complement, rather than replace, other comparisons. Comparing observed-data fit can provide a broader likelihood-based assessment, while comparisons of implied missing-outcome distributions and treatment effects address different targets. Residual plots are especially useful for locating the form and context of a discrepancy, but they do not by themselves rank candidates using a calibrated overall criterion. They are also not posterior predictive checks: here the focus is on residuals computed from the observed-data conditional distributions, not simulated replicated data.

Several failure modes deserve attention. A pooled plot can hide opposite residual patterns in different response groups. A few influential observations can dominate a summary such as the largest absolute residual. Sparse patterns make residual summaries unstable, while estimated conditional variances near zero can create very large standardized residuals. Finally, all candidates can look acceptable on observed outcomes yet differ substantially in extrapolation. That last situation is a limitation of what observed-data residuals identify, not evidence that the diagnostics have failed.

Common Mistake

Common mistake: “The residuals look roughly centered, so the MNAR model is correct and its predictions for missing outcomes are trustworthy.” Centering is only one observed-data feature, and a finite sample need not be exactly centered even under a suitable model. More fundamentally, residuals assess implications for outcomes that were observed; they cannot verify unobserved-outcome assumptions that are not identified by those data. Check location, spread, shape, and structure by pattern and covariate, then treat conclusions about extrapolation as a separate question.

Check Your Understanding

Try each question first, then compare your reasoning with the solutions.

  1. What distribution must a candidate specify for an observed-data residual check, and why is it not necessary to assume that distribution is correct beforehand?
  2. A model predicts an observed outcome as 14 units with conditional standard deviation 3 units; the observed value is 8 units. Calculate the standardized residual and interpret its sign and magnitude.
  3. Two candidates have identical conditional distributions for all observed outcomes but different assumptions about missing outcomes. Can residual plots distinguish those assumptions?
  4. Why should residuals from repeated outcomes on the same subject not automatically be treated as independent observations?

Solutions. (1) It must specify a model-implied observed-data conditional distribution that accounts for response pattern and relevant covariates, and any conditioning history used. Adequacy is what the residual diagnostic investigates, so requiring correctness in advance would be circular. (2) \(z=(8-14)/3=-2\). The observation is two fitted conditional standard deviations below the model-implied mean; one such value alone does not establish poor fit. (3) No. Identical observed-data distributions produce the same residual implications for these observations, so this diagnostic cannot distinguish the candidates’ missing-outcome assumptions. (4) Repeated outcomes share a subject and may be associated, and conditional residuals may also share fitted parameters. Treating them as independent can overstate the amount of diagnostic information.

Clinical Biostats