Tutorials › Multiple Imputation by Chained Equations (MICE) › Using Auxiliary Variables Without Losing Analysis Relationships

Imputation-Model Compatibility With the Analysis Model · Tutorial 266 of 497

Using Auxiliary Variables Without Losing Analysis Relationships

See how to add useful auxiliary predictors to MICE models without changing the relationships the planned analysis is intended to estimate.

Advanced 10 min read

What You'll Learn

  • Distinguish analysis variables from auxiliary predictors in an imputation model.
  • Map a planned analysis model to the conditional imputation models it requires.
  • Derive a compatible imputation conditional that includes an auxiliary variable.
  • Separate a conditional mean prediction from a proper imputed draw.
  • Diagnose when adding an auxiliary variable may distort or destabilize imputations.

Why Auxiliary Variables Require Care

An auxiliary variable is measured information that is useful for imputing incomplete data but is not itself part of the planned analysis model. It may predict an incomplete covariate, the outcome, or which values are missing. Such information can make imputations more informative, but adding a predictor is not automatically harmless: the imputation models must still preserve the relationships the analysis needs.

Suppose the planned analysis regresses a continuous outcome \(Y\) on a covariate \(X\) and an observed covariate \(C\). If \(X\) is incomplete and \(Z\) is an auxiliary variable, a natural imputation conditional for \(X\) uses \(Y\), \(C\), and \(Z\). Including \(Y\) and \(C\) helps retain the outcome–covariate and covariate relationships required by the analysis; \(Z\) can contribute additional information. The key question is not simply whether \(Z\) is predictive, but whether the resulting imputation model is consistent with the analysis relationship.

Definition: An auxiliary variable is a variable included in an imputation model to supply useful information about incomplete values or their missingness, even though it is not a term in the planned analysis model. An auxiliary variable can improve imputation, but it does not replace the outcome or the analysis covariates that the imputation model needs to retain.

A standard working condition is that the auxiliary information is observed for the records where it is needed, and that the imputation models adequately represent the relevant conditional distributions. If the analysis relies on \(Y\) and \(C\), an imputation model for \(X\) that uses \(Z\) but omits \(Y\) or \(C\) can fail to preserve the required relationships. Conversely, including \(Y\), \(C\), and \(Z\) as predictors does not by itself prove compatibility. The form and assumptions of the conditional models still matter.

Preserve First, Enrich Second

A practical way to plan the predictor sets is to begin with the analysis formula. For each incomplete analysis variable, identify the outcome and the other analysis variables that must be represented in its imputation conditional. Then consider which observed auxiliary variables can add useful information. This order makes it less likely that an auxiliary variable will displace an essential analysis predictor.

RoleExample in an analysis of \(Y\) on \(X\) and \(C\)Usual implication for imputing \(X\)
Outcome\(Y\)Include it when imputing an incomplete \(X\), so the outcome–covariate association is represented.
Analysis covariate\(C\)Include it when imputing \(X\), so the relation involving \(C\) is not discarded.
Auxiliary variable\(Z\), not in the analysis formulaInclude it when it supplies useful information, while checking compatibility and stability.

This is a predictor-set guide, not a universal recipe. In chained equations, each incomplete variable has its own conditional model; predictor sets may differ across those models. A variable should not be added to the analysis merely because it helped impute missing values. The analysis model continues to answer the prespecified question unless the scientific estimand or analysis plan itself changes.

Worked Example: Mapping the Analysis Model to an Imputation Model

Consider a hypothetical analysis of hospital length of stay \(Y\), in days, using a continuous severity score \(X\) and an observed age variable \(C\). The analysis model is an additive regression of \(Y\) on \(X\) and \(C\). The severity score is missing for some patients. A laboratory marker \(Z\) is observed and is not a term in the analysis.

For imputing \(X\), the essential predictors from the analysis are \(Y\) and \(C\). The marker \(Z\) may add information about severity. A suitable starting predictor set is therefore \(Y,C,Z\), rather than \(Z\) alone or \(C,Z\) with the outcome omitted.

For a numerical illustration, suppose a fitted conditional mean is \(E(X\mid Y,C,Z)=4+0.6Y-0.5C+2Z\), where \(Y\) is in days and \(X,C,Z\) use their specified measurement scales. For a hypothetical patient with \(Y=20\) days, \(C=4\), and \(Z=1\), the fitted conditional mean is

$$ 4+0.6(20)-0.5(4)+2(1)=4+12-2+2=16. $$

The value 16 is the conditional mean prediction, not a completed data value to assign automatically. If the residual standard deviation for this conditional model were 3 score units and the parameters were treated as fixed for this illustration, a draw with standard-normal value \(-0.5\) would be \(16+3(-0.5)=14.5\) score units. In actual multiple imputation, parameter uncertainty is also represented. The analysis still uses \(X\) and \(C\), not \(Z\), unless the analysis question is deliberately changed.

A Compatible Gaussian Construction

A simple model construction shows how an auxiliary variable can predict an incomplete covariate without changing the analysis relationship. Let \(Z\) be observed, and suppose the joint data-generating model is specified by these two equations:

$$ X\mid Z \sim N(10+2Z,4),\qquad Y\mid X \sim N(50+3X,9). $$

Assume that the errors in the two equations are independent, have mean zero, and have the stated normal variances. In particular, the second equation does not involve \(Z\): conditional on \(X\), the outcome relationship is \(Y=50+3X\) plus independent error. Thus \(Z\) helps predict \(X\) but does not alter the specified conditional regression of \(Y\) on \(X\).

For imputing \(X\), the relevant conditional distribution is \(X\mid Y,Z\). It follows by combining the normal distribution for \(X\mid Z\) with the normal likelihood for \(Y\mid X\). The derivation is useful because it makes clear that the imputation conditional is not chosen independently of the analysis relationship.

Derivation: Given \(Z=z\), the prior distribution for \(X\) has mean \(m=10+2z\) and variance \(4\). Given \(X=x\), the likelihood for \(Y=y\) has mean \(50+3x\) and variance \(9\). As a function of \(x\), the product of these normal densities has precision \(1/4+3^2/9=1.25\). Its conditional variance is therefore \(1/1.25=0.8\). Its conditional mean is that variance times the sum of the precision-weighted prior mean and likelihood contribution, \(m/4+3(y-50)/9\).
$$ X\mid Y=y,Z=z \sim N\left( 0.8\left\{\frac{10+2z}{4}+\frac{3(y-50)}{9}\right\},\,0.8 \right). $$

The factor \(3(y-50)/9\) appears because the likelihood mean is \(50+3x\), so the likelihood contributes a linear term in \(x\) proportional to \(3(y-50)/9\). The result is a conditional distribution for imputing \(X\) that uses both the outcome and the auxiliary variable. The joint construction also retains \(Y\mid X\sim N(50+3X,9)\), the intended analysis relationship.

Worked Example: Imputing \(X\) From the Outcome and an Auxiliary

Use the Gaussian model above for a hypothetical record with \(Y=83\) and \(Z=1\). First, the mean of \(X\mid Z=1\) is \(10+2(1)=12\). The variance is 4. From the observed outcome, the likelihood is centered at the \(x\) satisfying \(83=50+3x\), namely \(x=11\), with variance \(9/3^2=1\) when expressed on the \(X\) scale.

The posterior precision is the sum of prior and likelihood precisions:

$$ \frac{1}{4}+\frac{1}{1}=1.25, \qquad \operatorname{Var}(X\mid Y=83,Z=1)=\frac{1}{1.25}=0.8. $$

The conditional mean is the precision-weighted average of 12 and 11:

$$ E(X\mid Y=83,Z=1) =\frac{(1/4)(12)+(1)(11)}{1/4+1} =\frac{3+11}{1.25} =11.2. $$

Thus \(X\mid Y=83,Z=1\sim N(11.2,0.8)\), where the second parameter is the variance. The conditional standard deviation is \(\sqrt{0.8}=0.8944\) score units. An imputation is a random draw from this conditional distribution (with parameter uncertainty included in a full imputation procedure), not the fixed value 11.2. The analysis relationship remains \(Y=50+3X\) plus error with variance 9; \(Z\) has not been inserted into that relationship.

Compatibility Is a Constraint, Not a Predictor Count

The Gaussian example works because both conditionals arise from one specified joint distribution. It does not imply that any set of regression equations becomes compatible simply by including all analysis variables and auxiliaries. For example, an independently specified conditional model for \(X\mid Y,Z\) may imply an outcome relationship that depends on \(Z\), even if the analysis model excludes \(Z\). In that case, using \(Z\) in an imputation model can alter the relationship the analysis is meant to estimate.

The appropriate standard is to preserve the analysis model while using auxiliary information in a way that is compatible with it, or to use a carefully justified imputation approach that targets the same analysis estimand. For a continuous Gaussian illustration, the factorization \(f(X\mid Z)f(Y\mid X)\) provides one transparent construction. More generally, compatibility depends on the full set of conditional distributions and the variables' types, not just on a list of predictors. The analysis and imputation models must be evaluated together.

Worked Example: Checking What an Auxiliary Changes

Suppose the planned analysis is \(Y=50+3X+\varepsilon\), with mean-zero error, and an imputation model for \(X\) includes both \(Y\) and \(Z\). The Gaussian construction above gives \(X\mid Y,Z\) while retaining \(Y\mid X\) with no \(Z\) term. This is a coherent use of \(Z\): it can shift the imputed \(X\) distribution among records with different \(Z\), while the target outcome relationship is unchanged.

Now suppose an analyst instead adds \(Z\) directly to the analysis regression, obtaining \(Y\) regressed on \(X,C,Z\), solely because \(Z\) was useful for imputation. That changes the analysis model and potentially the estimand; it is not required by the imputation step. Alternatively, suppose an imputation scheme generates \(X\) in a way that makes the implied distribution of \(Y\mid X\) depend on \(Z\), despite the intended analysis excluding \(Z\). That raises a compatibility concern and calls for revisiting the model specification. In neither case does the label “auxiliary” settle the question; the implied analysis relationship does.

Diagnostics, Alternatives, and Limitations

After adding auxiliaries, inspect the imputed values and the relationships among variables, not only whether the chained equations ran. Useful checks include:

  • Predictor availability and coding: Confirm that each auxiliary is measured and coded consistently for observed and incomplete records. Check whether its missingness requires an imputation model of its own.
  • Distribution and support: Compare observed and imputed distributions of each incomplete variable, including ranges and category frequencies. Implausible values can indicate a poorly chosen conditional model.
  • Analysis relationships: In each completed data set, inspect whether the relationships of \(Y\) with \(X\) and \(C\) are reasonable and consistent with the analysis specification. Large changes after adding an auxiliary deserve investigation, not automatic acceptance.
  • Stability: Look for unstable estimates, extreme imputed values, or sensitivity to a small change in the predictor set. Strong collinearity, sparse categories, and too many auxiliaries for the available information can make conditional models unstable.

A main alternative is to impute using only the analysis variables. This can be simpler and may be adequate when auxiliary variables offer little additional information, but it can discard useful predictors of incomplete values or missingness. Another alternative is to include many available variables indiscriminately. That may retain more information in principle, but can increase instability and does not guarantee compatibility. The better choice depends on relevance, data support, and the relationship to the target analysis.

Auxiliary variables do not repair a misspecified imputation model, guarantee that missingness assumptions are plausible, or compensate for absent information. An auxiliary with a weak association to incomplete values may add little. A variable observed for few records may contribute little and create estimation difficulties. And if the relevant relationship is more complex than the chosen conditional model, merely adding \(Z\) does not resolve that misspecification. Model form, missingness assumptions, and compatibility remain substantive considerations.

Common Pitfall

Wrong reasoning: “The auxiliary \(Z\) predicts missing \(X\), so I can use \(Z\) alone to impute \(X\); the analysis will later include \(Y\) and \(C\), so their relationships will be recovered.”

Correction: The completed data are created before the analysis, and the imputation conditional determines how missing \(X\) relates to the observed outcome and covariates. If \(Y\) and \(C\) are needed for the analysis, their relevant relationships should be represented in the imputation model for \(X\), alongside \(Z\) when useful. Then assess whether the conditional models preserve the intended analysis relationship. Adding a predictor is not a substitute for this check.

Key takeaway: Use auxiliary variables to enrich imputation, not to replace the variables and relationships the analysis requires. Include outcome and analysis covariates where appropriate, and check the compatibility and stability of the resulting conditional models.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. An analysis regresses continuous \(Y\) on \(X\) and \(C\), and \(X\) is incomplete. An observed variable \(Z\) predicts \(X\). Which variables are the natural starting predictors for imputing \(X\), and why?
  2. In the Gaussian construction, what is \(\operatorname{Var}(X\mid Y,Z)\), and why does it not depend on the observed values \(Y\) and \(Z\)?
  3. For the worked record with \(Y=83\) and \(Z=1\), why should an imputation not be set to 11.2 every time?
  4. True or false: If \(Z\) is included in the imputation model, it must also be included in the analysis regression. Explain.
  5. Name two diagnostics that could reveal problems after adding auxiliary predictors.

Solutions. (1) Start with \(Y\) and \(C\), because they are part of the analysis relationships to preserve, and add \(Z\) because it may inform \(X\). (2) The variance is 0.8, obtained from the total precision \(1/4+3^2/9=1.25\). Under the stated normal model with fixed variances, the conditional precision is constant, so it does not depend on the observed values. (3) 11.2 is a conditional mean; setting every missing value to it removes residual uncertainty. Imputation requires random draws and, in a full procedure, parameter uncertainty. (4) False. \(Z\) can be auxiliary for imputing missing values without being a term in the analysis; adding it to the analysis can change the model or estimand. (5) Examples include checking observed versus imputed distributions and support, reviewing analysis relationships in completed data, and checking convergence or instability such as extreme values or sensitivity to predictor choice.

Clinical Biostats