Why Audit Imputation for a Logistic Interaction?
A logistic regression can represent an effect that changes across groups by including an interaction. If an analysis requires that interaction but the imputation models smooth it away, the completed data may not retain the relationship the analysis is intended to estimate. Conversely, including a product term in an analysis plan does not by itself make a set of chained conditional models compatible with that plan.
An audit asks whether the imputation specifications carry the information needed for the planned analysis. In this tutorial, the analysis has a binary outcome \(Y\), a continuous predictor \(X\), a binary effect modifier \(Z\), and an additional covariate \(C\). Some predictors may be missing. The aim is not to prove that every practical MICE specification is exactly compatible, but to identify important omissions and functional-form mismatches before fitting the analysis.
Write the Analysis Model Before Inspecting Imputation Models
The audit begins with the planned substantive model. For the variables above, suppose the analysis is
Here \(\operatorname{logit}(p)=\log\{p/(1-p)\}\). The model assumes that the log odds are linear in the displayed terms, conditional on the other included terms. In particular, the \(X\)-by-\(Z\) interaction means the association between \(X\) and the log odds of \(Y=1\) differs between the two values of \(Z\). It does not assert that \(X\) causes \(Y\).
For a one-unit increase in \(X\), the conditional odds ratio is \(\exp(\beta_X)\) when \(Z=0\), and \(\exp(\beta_X+\beta_{XZ})\) when \(Z=1\), holding \(C\) fixed. These interpretations depend on the interaction being in the analysis model. A model with only \(X\) and \(Z\) main effects imposes a common odds ratio for \(X\) across the two groups.
Before auditing, state the assumptions relevant to the planned analysis: \(Y\) is coded consistently as binary; \(X\), \(Z\), and \(C\) are defined and measured consistently; the specified conditional logit form and interaction are scientifically and analytically intended; and the data provide enough information to estimate the terms. The imputation models also require defensible assumptions about the missingness and the conditional distributions used to generate missing values. An audit of model terms cannot establish those assumptions or repair a lack of information.
Worked Example: Make the Interaction Explicit
Suppose a hypothetical analysis uses the model above and estimates \(\beta_X=0.35\) and \(\beta_{XZ}=0.55\). Calculate and interpret the odds ratios for a one-unit increase in \(X\) in each group.
For \(Z=0\), the interaction term is zero, so the log-odds change is \(\beta_X=0.35\). The odds ratio is \(\exp(0.35)=1.419\). Holding \(C\) fixed, a one-unit increase in \(X\) is associated with 1.419 times the odds of \(Y=1\) in the \(Z=0\) group.
For \(Z=1\), the log-odds change is \(\beta_X+\beta_{XZ}=0.35+0.55=0.90\). The odds ratio is \(\exp(0.90)=2.460\). Thus the fitted association differs across groups. These are conditional associations under the stated model, not causal effects.
Three Core Checks for the Imputation Specifications
MICE fits a conditional model for each variable with missing values, using other variables as predictors. For this audit, inspect each such model against the substantive model rather than asking only whether every variable appears somewhere in the imputation system.
- Outcome inclusion. When imputing an incomplete predictor, include the observed outcome \(Y\) as a predictor. The outcome contains information about the incomplete predictor that is relevant to the analysis. Omitting \(Y\) can weaken or distort the predictor–outcome association in the completed data. Including the observed outcome to impute predictors does not mean that the outcome is itself being imputed or used as an outcome predictor in the substantive analysis.
- Interaction information. If \(X\) is incomplete and \(Z\) is observed, check whether the imputation model for \(X\) can represent the way its relationship to the other variables varies with \(Z\). A term involving \(Y\) and \(Z\), such as \(YZ\), can be important. If \(Z\) is incomplete, the corresponding relationship may require information involving \(Y\) and \(X\), such as \(YX\). The product \(XZ\) must also be represented appropriately in the analysis of each completed data set. Merely including \(Y\), \(X\), and \(Z\) as separate main effects in every imputation model may fail to preserve the substantive interaction.
- Functional form. Check that the imputation models do not impose relationships that contradict those needed by the analysis. For example, if a continuous variable has a nonlinear term in the substantive model, a strictly linear imputation relationship may not preserve the relevant pattern. Likewise, check whether group-specific patterns implied by the interaction are represented. Matching variable names is not enough; the form of their relationships matters.
These are audit questions, not a universal recipe saying that one fixed list of product terms guarantees exact compatibility. The correct conditional distribution for a missing variable depends on the substantive model and on the joint distribution of the predictors. Ordinary chained conditional models can be convenient approximations, and their separate conditionals need not correspond to one coherent joint distribution.
Worked Example: Audit Which Terms Are Available
In a hypothetical data set, \(X\) is incomplete for some records, \(Z\) is observed for all records, and \(Y\) is observed. The planned analysis includes \(XZ\). Consider two candidate conditional models for imputing \(X\): Model A uses \(Y\), \(Z\), and \(C\) as main effects; Model B uses \(Y\), \(Z\), \(C\), and \(YZ\). Which is the stronger audit candidate?
Both models include the outcome, so neither fails the basic outcome-inclusion check. But Model A has no term that lets the relationship of \(X\) with the outcome differ by \(Z\). Model B adds \(YZ\), allowing the outcome-related pattern used to predict \(X\) to vary across modifier groups. Given the substantive \(XZ\) interaction, Model B is the stronger candidate for further review.
This comparison does not prove that Model B is exactly compatible: the appropriate conditional distribution can require a more complex form than a simple linear predictor for \(X\). It does show why checking only whether \(Y\), \(Z\), and \(C\) appear as separate predictors can miss an important feature.
Why an Interaction Can Induce a More Complex Conditional Model
A short derivation shows why the interaction audit cannot be reduced to a checklist of variable names. Let \(\eta_z\) be the linear predictor from the analysis model when \(Z=z\), at fixed \(X\) and \(C\). For binary \(Z\), Bayes' rule gives the odds of \(Z=1\) rather than \(Z=0\), conditional on \(Y\), \(X\), and \(C\):
Taking logarithms and using the logistic model, where \(P(Y=y\mid Z=z,X,C)=\exp(y\eta_z)/\{1+\exp(\eta_z)\}\), yields
The interaction makes \(\eta_1-\eta_0=\beta_Z+\beta_{XZ}X\), so the outcome information about \(Z\) depends on \(X\). The log terms also depend on the linear predictors. Thus, even with a simple logistic substantive model, the conditional distribution needed for imputing \(Z\) need not be a simple logit-linear model containing only a few main effects. The derivation justifies checking both interaction information and functional form; it also explains why a practical specification can be an approximation rather than an exact match.
Worked Example: Quantify the Outcome Information About the Modifier
Use a hypothetical fitted analysis model with \(\beta_0=-2.0\), \(\beta_X=0.40\), \(\beta_Z=0.30\), \(\beta_{XZ}=0.50\), and \(C=0\). At \(X=1\), compare the predicted probability of \(Y=1\) for \(Z=0\) and \(Z=1\), then calculate the likelihood ratio contributed by observing \(Y=1\).
For \(Z=0\), \(\eta_0=-2.0+0.40(1)=-1.60\), so \(P(Y=1\mid X=1,Z=0,C=0)=1/(1+\exp(1.60))=0.1680\), to four significant figures.
For \(Z=1\), \(\eta_1=-2.0+0.40(1)+0.30+0.50(1)=-0.80\), so \(P(Y=1\mid X=1,Z=1,C=0)=1/(1+\exp(0.80))=0.3100\).
The likelihood ratio for \(Y=1\), comparing \(Z=1\) with \(Z=0\), is \(0.3100/0.1680=1.845\). Thus observing \(Y=1\), at these fixed values of \(X\) and \(C\), multiplies the prior odds for \(Z=1\) versus \(Z=0\) by about 1.845. The outcome carries modifier information that varies with \(X\); an imputation model for \(Z\) that ignores \(Y\) would discard that information.
Diagnostics, Alternatives, and Limitations
A practical audit should be followed by diagnostics of the generated imputations and of the analysis relationships. Look for signs that the model is not doing what the specification intended:
- Compare observed and imputed distributions of each incomplete variable, including distributions across \(Y\) and across \(Z\). A plausible overall distribution can still conceal a poor group-specific pattern.
- Check whether the relationship between \(X\) and the outcome differs across \(Z\) in the completed data in a way consistent with the intended interaction. The earlier material on stratified checks for imputed interactions provides a focused approach to those comparisons.
- Inspect convergence and stability of the chained updates, and check for implausible values or separation in a logistic conditional model. A chain that appears to stabilize does not establish compatibility or remove model misspecification.
- Compare the analysis estimates across imputations and assess whether the interaction estimate is sensitive to defensible changes in the imputation specification. Large changes can be a warning that the data provide limited information or that the imputation model matters substantially.
The main practical alternative to a basic main-effects chained specification is to enrich the conditional models with outcome and interaction information, while using suitable forms for continuous predictors. Another approach is a substantive-model-compatible imputation method, designed to respect the analysis model more directly. These approaches can be more demanding to specify and fit. Complete-case analysis avoids specifying predictor imputation models, but it discards incomplete records and can be biased or inefficient unless its own assumptions hold. No approach makes the missingness assumptions true merely by being selected.
The audit has limits. It cannot establish that the logistic analysis is scientifically adequate, that the missingness mechanism is ignorable, or that the sample contains enough information to estimate the interaction. Nor does one successful marginal diagnostic prove that all conditional relationships are preserved. With sparse data or rare outcome-modifier combinations, complex interaction terms may be weakly estimated or unstable. The appropriate response is to report the specification and its limitations, and to examine whether substantive conclusions depend on reasonable alternatives.
Check Your Understanding
Answer each question, then compare with the solutions.
- In the stated analysis model, what is the odds ratio for a one-unit increase in \(X\) when \(Z=0\), and when \(Z=1\)?
- If \(X\) is incomplete and \(Y\) is observed, why is \(Y\) generally included in the conditional imputation model for \(X\)?
- What relationship may be missed by an imputation model for incomplete \(X\) that includes \(Y\) and \(Z\) only as main effects?
- Does including the analysis product \(XZ\) as an available term guarantee exact compatibility? Explain briefly.
- Name one diagnostic that could reveal an imputation model preserving the overall distribution but distorting the interaction.
Solutions. 1. The odds ratios are \(\exp(\beta_X)\) for \(Z=0\) and \(\exp(\beta_X+\beta_{XZ})\) for \(Z=1\). 2. The observed outcome provides information about the incomplete predictor relevant to the analysis; omitting it can weaken or distort the predictor–outcome association. 3. The model may fail to represent how the outcome-related pattern for \(X\) varies with \(Z\); a term such as \(YZ\) may be needed. 4. No. The conditional distribution implied by the substantive model can have a more complex form, and separate chained conditionals need not define a compatible joint distribution. 5. Compare imputed and observed distributions or relationships within outcome and modifier groups, or check the \(X\)-outcome association separately for each value of \(Z\).