Why Predictor Patterns Can Be Sparse
A binary imputation model can be difficult to estimate even when both outcome values occur often. The difficulty may instead arise because some combinations of the predictors are rare or absent. For example, a data set may contain many people with and without an outcome overall, but only a handful with a particular combination of age group, treatment, and comorbidity. A model with many interactions or category contrasts can then ask the data to estimate effects that are weakly supported.
This problem is distinct from a rare binary outcome. A rare outcome means that one value of the imputed variable is uncommon overall. A sparse predictor pattern means that a combination of predictor values is uncommon, whether or not both outcome values are adequately represented in the full sample. Sparse patterns may also occur alongside rare outcomes, so check both.
In MICE, the binary variable is modeled conditionally on the other variables currently used as predictors. The conditional model is typically logistic regression. The aim here is not to find a formula that fits every observed pattern, but to choose a model whose complexity the observed data can support and whose predictors remain appropriate for the imputation task.
Model Structure and Support
Let \(Y\) be the binary variable to impute, coded 0 or 1, and let \(X_1,\ldots,X_q\) denote its predictors. A logistic conditional model has the form
The model may also include terms such as category indicators, nonlinear terms, or interactions. Logistic regression assumes that the conditional probability is represented adequately by the chosen logit structure, that the model parameters are estimable from the observed outcomes, and that the rows used to fit it provide the relevant independent information under the sampling design. A sparse pattern does not automatically violate these assumptions. It can, however, make estimates imprecise, expose a misspecified structure, or make a parameter unestimable.
A useful first diagnostic is a count table of predictor patterns among cases for which \(Y\) is observed. For each pattern, examine both its total count and the counts with \(Y=0\) and \(Y=1\). Also check whether the same patterns occur among cases with \(Y\) missing, since the model will need to predict for those cases. A pattern absent from the observed outcomes but present among cases to impute requires extrapolation; a fitted model may still return a probability, but the data provide no direct evidence for that particular combination.
The number of distinct patterns alone is not a rule for retaining or removing terms. A pattern with a small count may be adequately modeled by a simpler structure that borrows information across patterns. Conversely, a large overall sample can still provide little information for a particular interaction or category contrast.
Worked Example: Checking Whether an Interaction Is Supported
Suppose a hypothetical data set has 80 observed values of \(Y\), with two binary predictors \(A\) and \(B\). The observed pattern counts are:
| \(A\) | \(B\) | Count | \(Y=1\) | \(Y=0\) |
|---|---|---|---|---|
| 0 | 0 | 30 | 8 | 22 |
| 1 | 0 | 25 | 10 | 15 |
| 0 | 1 | 23 | 9 | 14 |
| 1 | 1 | 2 | 1 | 1 |
The additive model uses an intercept and two main effects. An interaction model adds the term \(A B\), allowing the association of \(A\) with \(Y\) to differ according to \(B\). The \(A=1,B=1\) pattern has only two observations, so its outcome-specific evidence for an interaction is extremely limited.
For illustration, suppose a fitted additive model gives \(\hat\beta_0=-1.2\), \(\hat\beta_A=0.8\), and \(\hat\beta_B=0.6\). For \(A=1,B=1\), its predicted log odds and probability are
If an interaction estimate were \(2.4\), the corresponding probability for this pattern would be \(e^{2.6}/\{1+e^{2.6}\}\approx0.931\). The calculation is straightforward, but that large change would be based on a pattern containing just two outcomes. It should prompt scrutiny of the interaction estimate and its uncertainty, not an automatic conclusion that the pattern truly has a much higher probability. Unless there is a strong scientific reason and enough supporting data, the additive structure is a more defensible starting point.
Simplifying Without Losing the Purpose of the Model
Simplification is a modeling decision, not a license to remove any awkward predictor. Begin by asking what information each term is meant to preserve. A variable associated with \(Y\), a predictor of whether \(Y\) is missing, or a variable required by the substantive analysis may be important even if its individual coefficient is imprecise. Removing such a variable can make the conditional model more convenient while making the imputation less suitable.
Prefer simplifying the representation of a predictor before discarding the predictor altogether. Possible choices include using main effects rather than unsupported interactions, reducing a complex nonlinear specification to a simpler form, or combining categories that are genuinely similar for the scientific question. Each change should be recorded and justified. Category combinations should not be chosen solely because they produce a desired estimate or p-value.
Count observations, and where useful outcome values, across important predictor combinations. Include combinations needed to predict cases with missing \(Y\).
Determine whether the problem concerns an interaction, a high-cardinality factor, an unnecessary nonlinear term, redundant predictors, or an outcome pattern with too few observations.
Remove or simplify the term with weak support, while retaining important predictors and scientifically justified structure where possible.
Inspect convergence, coefficient uncertainty, predicted probabilities, and whether the simplified model can predict for the patterns requiring imputation.
A short justification for dropping an interaction follows from how its information enters the model. For binary \(A\) and \(B\), the interaction column is \(A B\): it is 1 only when both predictors equal 1. If no observed-\(Y\) case has \(A=B=1\), that column is zero in every row used to fit the model. The likelihood is then unchanged by the interaction coefficient, so the data cannot identify that coefficient. If only a few rows have \(A=B=1\), the coefficient is technically informed but its estimate can be highly sensitive to those rows.
When \(A_iB_i=0\) for every observed case, \(\eta_i\) does not depend on \(\beta_{AB}\), and neither does \(\ell(\beta)\). This is a direct reason not to retain an interaction that the observed data cannot estimate. When the interaction column is nonzero for just a few cases, the same reasoning explains why the estimate may be unstable: nearly all the likelihood information comes from a small subset.
Worked Example: Combining Similar Sparse Categories
In a hypothetical clinic data set, a three-level predictor describes a clinically defined exposure group. Among observed values of \(Y\), the counts are: group A, 42 people with 12 outcomes; group B, 5 people with 1 outcome; and group C, 6 people with 2 outcomes. Groups B and C are adjacent exposure levels defined using the same measurement, and the scientific question does not require estimating their effects separately.
Separate category indicators for B and C require two contrasts against group A. The observed outcome proportions are \(1/5=0.20\) in B and \(2/6\approx0.333\) in C, but these estimates are based on only five and six people. If B and C are combined, the resulting group has \(5+6=11\) people and \(1+2=3\) outcomes, giving an observed proportion of \(3/11\approx0.273\). The combined proportion is not a proof that B and C have identical risks; it is a summary under the deliberate modeling choice to treat these adjacent levels alike.
Combining them is defensible here because the categories are substantively similar and separate contrasts are not required. It reduces the factor to one contrast against A and pools information for the combined level. If B and C represented clinically distinct exposures, or if the analysis required separate effects, merging would sacrifice relevant information and should not be justified merely by these small counts. In that case, consider whether the available data can support separate imputation-model effects, and communicate the resulting limitation.
Comparing Candidate Models and Diagnosing Failure
A parsimonious model is not necessarily the model with the fewest terms. Removing a predictor can reduce sparse patterns yet omit information needed for plausible imputations. Conversely, keeping every candidate interaction can produce unstable estimates and extreme predictions. Compare candidates using several kinds of evidence rather than a single automatic selection rule.
Useful checks include whether the fitting algorithm converges; whether coefficients or standard errors are unusually large; whether estimates change substantially after a small, defensible model adjustment; and whether fitted probabilities are near 0 or 1 for patterns with little data. Inspect the distribution of predictions by predictor pattern, especially for patterns among the missing-\(Y\) cases. Such diagnostics do not establish that a model is correct, but they can reveal when it is relying heavily on extrapolation or a few observations.
For candidate models fit to the same observed outcomes, information criteria such as AIC can summarize the trade-off between fit and parameter count. AIC is not a substitute for scientific judgment: it does not ensure that important predictors have been retained, that extrapolation is safe, or that the imputation model is appropriate for the substantive analysis. It is most useful as one comparison among models that are each defensible.
Worked Example: Balancing Fit and Number of Terms
Suppose two hypothetical logistic models are fit to the same 120 observed binary outcomes. Model A has 7 estimated parameters and deviance 118. Model B has 12 parameters and deviance 112. The AIC is deviance plus twice the number of parameters:
Model B reduces deviance by 6 but uses 5 additional parameters, increasing its AIC by 4. Thus, among these two candidates, AIC favors Model A. Suppose the extra terms in Model B are interactions involving predictor patterns with very few observations. This result is consistent with choosing the simpler model, but it does not prove that Model A is correct. Check whether Model A retains variables needed for the imputation task, whether the dropped interactions were scientifically important, and whether predictions for missing-\(Y\) cases are plausible.
If a required interaction is unsupported, the data may not permit reliable estimation of that structure. Selecting Model A should then be described as a practical modeling choice under limited information, rather than evidence that the interaction is absent in the population.
Common Pitfalls and Limits
- Using overall sample size as the only diagnostic. A large data set can contain predictor combinations represented by only a few cases. Inspect pattern-specific counts.
- Confusing sparse patterns with a rare outcome. Check outcome prevalence and predictor support separately; each can cause different problems.
- Combining categories only because they are small. Small categories may be meaningfully distinct. Combine only when the grouping has a defensible substantive interpretation.
- Deleting all predictors that cause instability. A predictor may be important for the analysis or missingness process. Simplify its functional form or interactions where defensible before dropping it.
- Treating a converged fit as proof of adequate support. Software can return estimates and probabilities for patterns scarcely represented in the observed outcomes. Convergence does not remove extrapolation uncertainty.
Simplification cannot create information that the data do not contain. If the missing-\(Y\) cases have predictor combinations far outside the support of observed-\(Y\) cases, a reduced logistic model may produce predictions, but those predictions depend on assumptions about how effects extend to those combinations. State that limitation and assess whether the chosen model is reasonable for the intended analysis.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- A binary outcome occurs in 35% of the sample, but only three observed cases have a particular pair of predictor values. Is the main concern a rare outcome or a sparse predictor pattern?
- An interaction term is 1 for no observed-\(Y\) cases. What does this imply about estimating its coefficient from those cases?
- Two small categories represent adjacent levels of the same measure, but the substantive analysis needs separate effects. Should they automatically be combined for imputation?
- A more complex model has lower deviance but higher AIC than a simpler model. What does that comparison say, and what does it not establish?
Solutions. (1) The outcome is not rare overall; the immediate concern is sparse support for that predictor combination. (2) The likelihood does not depend on the interaction coefficient when its design column is zero throughout, so the coefficient is not identified by those observed cases. (3) No. Combining would remove the separate distinction needed by the analysis; the limited support should instead be acknowledged and the model structure considered carefully. (4) The complex model's improved fit did not offset its penalty for additional parameters under AIC, so AIC favors the simpler model among the candidates. It does not prove the simpler model is correct or that it preserves every scientifically important feature.