Multiple imputation

Analytika TeamLast reviewed 7 min read

Deleting every row with a missing value wastes data, and it can bias results. Filling gaps with a single guess makes standard errors too small, because it treats guesses as real data. Multiple imputation solves both problems. It’s the standard recommendation for data missing at random (see missing data).

How it works

  1. Impute: predict each missing value from the other variables, adding random variation. Repeat to create m completed datasets that differ where data were missing.
  2. Analyse: run your analysis (such as a regression) on each dataset.
  3. Pool with Rubin’s rules. The estimate is the average across datasets. The variance combines the average within-dataset variance and the variance between datasets, which carries the uncertainty about the missing values.

A common choice is predictive mean matching (PMM), which fills each gap with an observed value from a similar case, so imputations stay realistic.

Worked example: what predicts ozone?

R’s airquality data record 153 days. Ozone is missing on 37 days and solar radiation on 7, so 27.5% of rows are incomplete. A complete-case regression would drop over a quarter of the data. Analytika imputed both variables with predictive mean matching (28 imputations, about one per percent of incomplete rows) and pooled a regression of ozone on wind, temperature and solar radiation:

PredictorbSEpFMI
Wind (mph)−2.930.65< .001.24
Temperature (°F)1.630.26< .001.28
Solar radiation0.0620.022.006.14

Hotter, sunnier and calmer days had higher ozone. The FMI values (.14 to .28) show the missing data added moderate uncertainty, and Rubin’s rules widened the standard errors accordingly. Because imputation is random, results vary slightly from run to run. Analytika uses a fixed seed for reproducibility, and its test suite checks that pooled estimates agree with R’s mice within simulation error.

APA write-up

Missing values (27.5% of rows incomplete) were handled by multiple imputation using predictive mean matching (m = 28), with estimates pooled using Rubin’s rules. Higher ozone was associated with lower wind speed, b = −2.93, SE = 0.65, p < .001, higher temperature, b = 1.63, SE = 0.26, p < .001, and more solar radiation, b = 0.062, SE = 0.022, p = .006.

Good practice

  • Include in the imputation model every variable in the analysis, including the outcome, plus variables that predict missingness.
  • Use enough imputations: a common rule is m at least the percentage of incomplete cases.
  • Report the method, m, the variables imputed, and the software.
  • MI assumes MAR. If data are missing because of their unobserved values (MNAR), add sensitivity analyses.

References

  • Rubin, D. B. (1987). Multiple imputation for nonresponse in surveys. Wiley.
  • van Buuren, S., & Groothuis-Oudshoorn, K. (2011). mice: Multivariate imputation by chained equations in R. Journal of Statistical Software, 45(3), 1–67.

More in Advanced methods

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free