Missing data are common in clinical research. Many researchers simply delete the patients with missing values and analyze the rest. However, this complete-case approach can give biased results and wastes information. Multiple imputation is a principled method that replaces each missing value with several plausible values, analyzes each completed dataset, and combines the results into one estimate. A common mistake is to fill each missing value once, for example with the mean, and then analyze the data as if nothing was missing. This guide explains multiple imputation step by step, using one hypothetical clinical trial.
Table of Contents
Working on a study? StatisMed biostatisticians can run your analysis, calculate your sample size, and write your Results section. Get a free quote →
What Is Multiple Imputation?
Multiple imputation is a statistical method for handling missing data. It creates m completed datasets (for example, m = 20). In each dataset, the missing values are predicted from the observed data, with random variation added. Then, the same analysis is performed in each dataset, and the m results are pooled with Rubin’s rules. Therefore, the final standard error includes the extra uncertainty caused by the missing data (Sterne et al., 2009).
Single Imputation
Single imputation fills each missing value only once. Common examples are mean imputation and last observation carried forward. Nevertheless, single imputation treats the filled values as if they were real observations. As a result, the standard errors are too small, and the p-values are too small as well.
MICE Imputation (Chained Equations)
Multivariate imputation by chained equations, known as MICE imputation, imputes one variable at a time. Each variable has its own model, such as linear regression for a continuous variable and logistic regression for a binary variable. Moreover, MICE is available in R and in SPSS (where it is called fully conditional specification), and it is a widely used data imputation approach in medical research.
Importance of Multiple Imputation in Medical Research
It Reduces Bias
Patients with missing data often differ from patients with complete data. For example, sicker patients are more likely to miss follow-up visits. Multiple imputation uses the observed information on these patients to reduce this bias.
It Keeps All Patients in the Analysis
Deleting patients reduces the sample size and the power of the study. In contrast, multiple imputation keeps every patient, which supports the intention-to-treat principle.
It Gives Honest Standard Errors
The variation between the imputed datasets shows how uncertain the missing values are. Rubin’s rules add this variation to the usual standard error. Consequently, the confidence interval and the p-value reflect both the sampling error and the missing information.
Applications of Multiple Imputation in Clinical Studies
Randomized Clinical Trials
In trials, outcome data are often missing because of dropout. Multiple imputation is commonly used as the primary method or as a sensitivity analysis. Notably, a practical guide for trials recommends deciding the method in the statistical analysis plan, before the data are seen (Jakobsen et al., 2017). Our guide to statistics for clinical trials explains the other parts of the trial analysis.
Observational and Cohort Studies
Cohort data often have missing covariates, such as smoking status. Multiple imputation keeps these patients in regression models, for example in logistic regression or in propensity score matching.
Surveys and Questionnaires
In surveys, participants often skip single items. Multiple imputation can fill these items before the scale scores are calculated.
Assumptions of Multiple Imputation
Before performing multiple imputation, check that the study meets the following conditions:
- The data are missing at random (MAR): the probability of missingness depends only on observed variables.
- The imputation model includes all variables of the analysis model, including the outcome.
- The imputation model includes auxiliary variables that predict the missing values or the missingness.
- The imputation model for each variable fits its type (linear, logistic or multinomial).
- The number of imputations is large enough to give stable results.
Notably, the MAR assumption cannot be proven from the observed data.
How to Perform Multiple Imputation: A Clinical Example
Consider a hypothetical randomized trial of 200 adults with hypertension. In total, 100 patients received a new drug, and 100 patients received the standard drug. The primary outcome was systolic blood pressure (SBP) at 12 weeks. The analysis model was a linear regression of 12-week SBP on the treatment group, adjusted for baseline SBP. All the numbers below were calculated with Python.
Step 1: Describe the Missing Data
First, count the missing values in each group. The 12-week SBP was missing for 43 of 200 patients (21.5%). Moreover, missingness was more frequent in the standard drug group (29.0%) than in the new drug group (14.0%) (χ² = 6.67, df = 1, p = 0.010). Table 1 also shows that patients with missing outcomes had a higher baseline SBP.
| Measure | New drug (n = 100) | Standard drug (n = 100) | Total (n = 200) |
|---|---|---|---|
| Observed 12-week SBP, n | 86 | 71 | 157 |
| Missing 12-week SBP, n (%) | 14 (14.0%) | 29 (29.0%) | 43 (21.5%) |
| Baseline SBP, observed patients, mean (mmHg) | 151.3 | 150.4 | 150.9 |
| Baseline SBP, missing patients, mean (mmHg) | 158.4 | 159.9 | 159.4 |
Step 2: Check the Missing Data Mechanism
Next, fit a logistic regression with missingness (yes or no) as the outcome. Table 2 shows that each 1 mmHg increase in baseline SBP increased the odds of a missing outcome (OR = 1.11, 95% CI, 1.06 to 1.16, p < 0.001). In addition, the new drug group had lower odds of missingness (OR = 0.40, 95% CI, 0.19 to 0.86, p = 0.019). Therefore, missingness depended on observed variables, and the MAR assumption is plausible.
| Predictor | OR (95% CI) | p-value |
|---|---|---|
| Baseline SBP (per 1 mmHg) | 1.11 (1.06 to 1.16) | < 0.001 |
| Age (per 1 year) | 1.03 (0.98 to 1.08) | 0.208 |
| New drug vs standard drug | 0.40 (0.19 to 0.86) | 0.019 |
Step 3: Build the Imputation Model
The imputation model predicts the 12-week SBP from the treatment group, baseline SBP and age. Moreover, age is added as an auxiliary variable. Notably, the imputation model must never omit the outcome or the treatment group, otherwise the treatment effect is biased toward zero.
Step 4: Create the Imputed Datasets
The missing values are imputed 20 times (m = 20). In each round, the regression coefficients are drawn at random, and a random residual is added to each prediction. Therefore, the 20 completed datasets have the same observed values but different imputed values.
Step 5: Analyze Each Imputed Dataset
The analysis model is fitted in each of the 20 datasets. Table 3 shows the first five estimates of the mean difference (MD) in 12-week SBP between the groups. The 20 estimates ranged from −9.80 to −6.11 mmHg.
| Imputed dataset | MD in 12-week SBP (mmHg) | Standard error |
|---|---|---|
| 1 | −9.80 | 1.45 |
| 2 | −7.96 | 1.34 |
| 3 | −8.22 | 1.37 |
| 4 | −6.11 | 1.37 |
| 5 | −8.17 | 1.47 |
| Pooled estimate (mean of 20) | −8.12 | 1.60 |
Step 6: Pool the Results with Rubin’s Rules
Rubin’s rules combine the 20 results in three parts. First, the pooled estimate is the mean of the 20 estimates: MD = −8.12 mmHg. Second, the within-imputation variance (W) is the mean of the 20 squared standard errors: W = 1.857. Third, the between-imputation variance (B) is the variance of the 20 estimates: B = 0.672.
The total variance is T = W + (1 + 1/m) × B = 1.857 + 1.05 × 0.672 = 2.563. Therefore, the pooled standard error is √2.563 = 1.60. With 90.3 degrees of freedom, the 95% CI was −11.30 to −4.94 mmHg (p < 0.001). In addition, the fraction of missing information was 0.29.
Step 7: Compare with the Complete-Case Analysis
Finally, compare the multiple imputation result with the complete-case result as a sensitivity analysis. Table 4 shows that the complete-case analysis used 157 patients, whereas multiple imputation used all 200 patients. The complete-case estimate was smaller (−7.87 vs −8.12 mmHg). Nevertheless, both analyses gave the same conclusion.
| Measure | Complete-case (n = 157) | Multiple imputation (n = 200, m = 20) |
|---|---|---|
| MD in 12-week SBP (mmHg) | −7.87 | −8.12 |
| Standard error | 1.53 | 1.60 |
| 95% CI | −10.89 to −4.84 | −11.30 to −4.94 |
| p-value | < 0.001 | < 0.001 |
How to Report Multiple Imputation Results in a Manuscript
In the Methods section, state the amount of missing data, the assumed mechanism, the imputation method, the variables in the imputation model, the number of imputations and the software. For example: “Missing 12-week SBP values were handled with multiple imputation by chained equations under the missing at random assumption, using treatment group, baseline SBP and age. Twenty imputed datasets were pooled with Rubin’s rules.” In the Results section, report the significant findings only, as in the model paragraph below.
Effect of the New Drug on Systolic Blood Pressure at 12 Weeks
Outcome data were missing for 43 of 200 patients (21.5%). After multiple imputation (m = 20), the new drug significantly reduced systolic blood pressure at 12 weeks compared to the standard drug, adjusted for baseline systolic blood pressure (MD = −8.12 mmHg, 95% CI, −11.30 to −4.94, p < 0.001). Similarly, the complete-case analysis showed a significant reduction in the new drug group (MD = −7.87 mmHg, 95% CI, −10.89 to −4.84, p < 0.001) (Table 4).
Notice that the paragraph gives the numbers without explaining why the two estimates differ. The interpretation of this difference, and its clinical meaning, belongs in the Discussion section.
Common Mistakes When Using Multiple Imputation
Using Mean Imputation or a Single Imputation
Mean imputation reduces the variability of the data and ignores the relation between variables. Moreover, any single imputation underestimates the standard error.
Leaving the Outcome Out of the Imputation Model
Some researchers think that using the outcome to impute the covariates is “cheating”. In fact, omitting the outcome weakens the association with the covariates. As a result, the regression coefficients are biased toward zero (Sterne et al., 2009).
Averaging the Imputed Datasets
Averaging the 20 datasets into one dataset is a single imputation. Instead, analyze each dataset separately, then pool the estimates.
Ignoring the Missing Not at Random Possibility
Multiple imputation is valid under MAR. If dropout depends on the unobserved outcome itself, the result can still be biased. Therefore, report a sensitivity analysis, for example a complete-case analysis or a “delta” adjustment of the imputed values.
Not Reporting the Method
Many papers write only “missing data were imputed”. Readers need the imputation model, the number of imputations and the software. In addition, the analysis must match the study design, such as mixed-effects models for repeated measurements.
Running Multiple Imputation in SPSS and R
In SPSS, first use Analyze → Multiple Imputation → Analyze Patterns to describe the missing data. Next, use Analyze → Multiple Imputation → Impute Missing Data Values, add the variables of the imputation model and set the number of imputations to 20. Then, run Analyze → Regression → Linear on the new dataset, and SPSS shows a “Pooled” row with Rubin’s rules. In R, the mice package performs MICE imputation and pooling in one line: summary(pool(with(mice(trial, m = 20, seed = 11), lm(sbp12 ~ group + sbp0))), conf.int = TRUE). Notably, the pooled values will differ slightly between software and seeds, because the imputations are random.
Conclusion
Multiple imputation replaces each missing value with several plausible values, analyzes each completed dataset, and pools the results with Rubin’s rules. Therefore, it keeps all patients in the analysis and gives honest standard errors under the MAR assumption. Moreover, a complete report describes the missing data, the imputation model, the number of imputations and a sensitivity analysis. If you are not sure which statistical test to choose, or you need help with missing data in a clinical trial or cohort study, the StatisMed team of biostatisticians provides statistical analysis services for medical studies. You can request a free quote today.
Frequently Asked Questions
1. How many imputations are needed in multiple imputation?
Older guides recommended 3 to 5 imputations. However, current practice uses 20 or more, especially when the proportion of missing data is large.
2. What is the difference between multiple imputation and MICE imputation?
Multiple imputation is the general method of creating and pooling several imputed datasets. MICE imputation is one way to create these datasets, by imputing one variable at a time with chained regression models.
3. Can I use multiple imputation when more than 40% of the data are missing?
Yes, if the MAR assumption is plausible and the imputation model is good. Nevertheless, the results then depend more on the assumptions, so a careful sensitivity analysis is needed.
References
Jakobsen, J. C., Gluud, C., Wetterslev, J., & Winkel, P. (2017). When and how should multiple imputation be used for handling missing data in randomised clinical trials – a practical guide with flowcharts. BMC Medical Research Methodology, 17, 162. https://doi.org/10.1186/s12874-017-0442-1
Sterne, J. A. C., White, I. R., Carlin, J. B., Spratt, M., Royston, P., Kenward, M. G., … Carpenter, J. R. (2009). Multiple imputation for missing data in epidemiological and clinical research: Potential and pitfalls. BMJ, 338, b2393. https://doi.org/10.1136/bmj.b2393




