- Introduced by
- Stef van Buuren & Karin Groothuis-Oudshoorn
- Year
- 2011
- Type
- Iterative multiple imputation algorithm
- Family
- Missing data
What does it do?
Multivariate Imputation by Chained Equations (MICE) is an iterative method for handling missing values in multivariate data.
Each incomplete variable is imputed from a regression-type model that uses all other variables as predictors, and this cycle is repeated until the imputed values settle. The procedure produces m completed datasets, each is analysed separately, and the results are combined using Rubin's rules.
The intuition behind the method
Imagine a partially completed crossword puzzle: each blank word is filled in by looking at the crossing letters already present. If a newly filled word reveals more letters, you revisit earlier blanks with the new information. MICE works the same way — it fills in one missing column at a time using all other columns as clues, then revisits every column again, iterating until the answers stabilise across many candidate puzzles.
History
The mice software that implements chained-equations imputation was developed by Stef van Buuren and Karin Groothuis-Oudshoorn. According to the 2011 article's abstract, mice 1.0 appeared in 2000 as an S-PLUS library and in 2001 as an R package. The 2011 Journal of Statistical Software article documents the extended mice package, including multilevel imputation, predictor selection and diagnostic graphs.
When to use it
Choose MICE when several variables have missing values at the same time and missingness can plausibly be explained by the observed data (the MAR assumption). Its per-variable model specification suits datasets that mix continuous, binary, ordinal and categorical variables. It is a weaker choice when missingness may depend on the unobserved values themselves (MNAR), because the standard procedure does not model that dependence and sensitivity analyses are needed. It is also a poor fit when the number of variables is so large that fitting a model for each one becomes impractical, or when a key variable is largely missing and no auxiliary information is available. Where missingness is rare and plausibly unrelated to any data, simpler approaches may be adequate.
Limitations and considerations
- Assumes data are missing at random (MAR); when missingness depends on unobserved values, results require sensitivity analyses or pattern-mixture extensions
- Computational cost grows with the number of variables and iterations, and the whole procedure is repeated m times, so each additional imputation multiplies the work
- Convergence of the chained sampler is not mathematically guaranteed when the conditional models are incompatible with one another
- Model specification (predictor selection and the imputation method for each variable) depends on analyst judgement, and the choices affect the imputed values
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Each variable can use a model suited to its type (for example linear, logistic or predictive mean matching), so continuous, binary and categorical incomplete variables are handled within one framework
- The pooling step combines within- and between-imputation variance, so the final standard errors reflect the uncertainty created by the missing values rather than treating imputed values as observed
- The predictor matrix allows auxiliary variables to be included and, through passive imputation, derived quantities such as sum scores, transformations and interactions, as described in the 2011 mice article
- Automatic predictor selection and diagnostic graphs are available in the mice package, according to the article's abstract
Applications
- Clinical trials and epidemiological cohort studies with intermittent follow-up measurements
- Survey data harmonisation where different questionnaire modules yield different missing patterns
- Machine learning preprocessing pipelines requiring complete feature matrices before model training
- Health economics and policy research combining administrative records with self-reported questionnaire data
- Longitudinal educational assessments with item non-response across multiple test waves
How it works
How it works
MICE starts by replacing every missing entry with a simple provisional value, such as the observed mean for a continuous variable or the mode for a categorical one. This gives every variable complete predictors when the first cycle begins. These starting values are overwritten in the cycles that follow.
Formula
X^{(0)}_{\text{mis}} \leftarrow \text{simple imputation}(X_{\text{obs}})For each variable X_j with missing entries, a model suited to its type (for example linear regression, logistic regression or predictive mean matching) is fitted with all other variables X_{-j} as predictors. The step is written as a draw from P(X_j | X_{-j}, theta_j), so the imputed values come from that conditional model. Here theta_j denotes the parameter of the conditional model. The notation is simplified and does not specify how parameter uncertainty is treated; this depends on the imputation method and its implementation in the software used.
Formula
\hat{X}_j \sim P\!\left(X_j \mid X_{-j},\, \theta_j\right), \quad j = 1, \ldots, pOnce every variable has been imputed, each variable's model is refitted using the most recently imputed values of its covariates, and the pass through all p variables is repeated for a user-defined number of iterations. The formula shows the parameter update for variable j at iteration t, computed from the observed cases of that variable and the imputed values from iteration t-1. The number of iterations is set by the user, and this formulation includes no formal stopping criterion. In practice, convergence is checked informally, for example by inspecting trace plots of the imputed means and standard deviations across iterations. The mice package includes diagnostic graphs, according to the 2011 article's abstract.
Formula
\theta_j^{(t)} = \arg\max_{\theta_j} \prod_{i: x_{ij} \text{ obs}} P\!\left(x_{ij} \mid x_{i,-j}^{(t-1)},\, \theta_j\right)The initialisation and cycling are repeated m times to produce m completed datasets. The intended analysis is run on each dataset, and the m estimates are averaged to give the pooled estimate. The total variance T = Ū + (1 + 1/m)B adds the average within-imputation variance Ū to the between-imputation variance B, so the uncertainty caused by the missing values is carried into the final standard error.
Formula
\bar{Q} = \frac{1}{m}\sum_{l=1}^{m} \hat{Q}_l, \quad T = \bar{U} + \left(1 + \frac{1}{m}\right) BCommon pitfalls
- With very few imputed datasets, the between-imputation variance B is estimated noisily, and it enters T with the factor (1 + 1/m), so the pooled standard errors become unstable
- Leaving the outcome variable out of the imputation model biases the estimated associations toward the null
- Ignoring interaction terms or non-linear relationships in the imputation model can distort downstream analyses, which is why passive imputation is used for these terms
- Pooling results without checking convergence, for example with trace plots, risks combining imputations from chains that have not stabilised, because the procedure contains no built-in stopping rule
Frequently asked questions
How many imputed datasets (m) should I create?
The mice package uses m = 5 by default. The choice is a trade-off: the pooled variance includes the between-imputation term with factor (1 + 1/m), so more imputed datasets stabilise the pooled estimates and standard errors at a higher computational cost. Analysts often increase m when the share of incomplete cases is large, and no single rule fixes the appropriate value.
Can MICE handle missing not at random (MNAR) data?
Standard MICE assumes MAR. Under MNAR the imputation model is misspecified, potentially biasing results. Analysts should conduct sensitivity analyses — for example, using delta-adjustment or pattern-mixture models — to assess how results change under plausible MNAR departures from the MAR assumption.
What imputation method should I choose for each variable?
The mice package selects defaults based on variable class: predictive mean matching (pmm) for continuous variables, logistic regression for binary, polytomous regression for unordered factors, and proportional odds for ordered factors. These defaults work well in most applied settings, but analysts may substitute random forests or other flexible learners for complex distributions.
Related methods
Sources
van Buuren, S., & Groothuis-Oudshoorn, K. (2011). mice: Multivariate imputation by chained equations in R. Journal of Statistical Software, 45(3), 1–67.
Open DOI reference