Chapter 2 · Getting the data ready

What do you do about missing values?

Why data go missing, complete-case analysis, single and multiple imputation, and sensitivity analysis.

Read first: Data collection, Clinical trials

The problem first

You are a third-year Psychiatry resident. Your thesis trial randomised 120 patients with depression to an add-on drug or placebo and recorded the HAM-D score at baseline, 6 weeks and 12 weeks. At 12 weeks, 28 patients have no score, 19 of them on placebo.

The software runs the t-test on the 92 patients with complete data without any warning. A co-resident suggests filling each gap with the patient's 6-week score. At the pre-submission seminar, the examiner turns to the flow diagram.

“Why are these 28 patients missing, and would your conclusion survive if they had done worse?”

Start here

Why does it matter which patients are missing?

Missing values cause two problems. There are fewer patients, so the estimate is less precise. And if the missing patients differ from the others, the estimate is biased, however many patients remain.

Six values missing at randommean of the rest 150.7The six highest values missingmean of the rest 140.6true mean 150.8120140160180200
Made-up teaching data: systolic BP in 20 patients. Losing six patients at random leaves a mean of 150.7 mmHg, close to the true 150.8. Losing the six with the highest BP, for example because they were too unwell to attend, leaves 140.6. Both analyses use 14 patients. Only the reason for the loss differs.

Three types of missing data

Why are the values missing?

The reason decides which analysis gives an unbiased answer. The three standard terms come from Rubin's framework for missing data.

MCARa spoiled sample batchunrelated to the patientsBP missingMARagerecorded for everyoneBP missingMNARthe BP value itselfnot recordedBP missing
The question in each panel is the same: what makes a BP value more likely to be missing? Arrows show a cause.
  • Missing completely at random (MCAR): the chance of a value being missing is unrelated to anything about the patient, recorded or not. A freezer failure destroys a batch of samples. The patients left are a random subset, so a complete-case analysis loses precision but is not biased.
  • Missing at random (MAR): the chance depends on things you have recorded, and not further on the missing value. Older patients miss the 1-year visit more often, age is recorded, and among patients of the same age attendance is unrelated to the result. Methods that use age can correct the bias.
  • Missing not at random (MNAR): the chance still depends on the missing value after allowing for everything recorded. Patients whose mood worsens stop answering the questionnaire. No recorded variable explains it.

The names mislead. “Missing at random” does not mean the missing patients are like the others: in the MAR example they are older. As Sterne and colleagues put it, the phrases convey little about their technical meaning. More important for practice: it is not possible to distinguish MAR from MNAR using the observed data, so the assumption has to be argued from how the data were collected and then tested with sensitivity analyses.

Interactive

Remove BP values by each mechanism and watch the complete-case mean, the imputed SD and the true mean

The same 200 made-up patients each time. Only the reason for the missing values changes.

Try this: keep 30% missing and switch between MCAR, MAR and MNAR. Watch the complete-case mean and the mean filled in from age, compared with the true mean of all 200 patients.

Teaching example with made-up data. In a real study you never see the true mean or the missing values. The simulation shows them so that you can see the bias.

30%

Out of 200 patients

Why the values are missing

Older patients miss the visit more often. Age is recorded for everyone, so the missing BP values can be predicted from age.

Estimate of mean BPmmHgDifference from the true mean
True mean, all 200 patients141.4–
Complete cases only (140 patients)135.3-6.1
Missing values predicted from age (regression)141.4+0.0

SD of BP: true 17.5 · after filling every gap with the complete-case mean 12.6

true meancomplete cases30456075age, years100150200BP recordedBP missing

Interactive

Read each scenario and name the mechanism: MCAR, MAR or MNAR

Look for the one fact that decides it: is missingness linked to nothing, to something recorded, or to the missing value itself?

Try this: for each scenario, decide why the values are missing. The explanation appears after you choose, and you can change your answer.

Made-up scenarios. In a real study you cannot prove which mechanism applies. You judge it from how the data were collected.

  1. A freezer failure destroyed one batch of stored serum samples. The batch held samples from patients enrolled on those days, and enrolment day was unrelated to the patients or their results.

    Mechanism for scenario 1
  2. In a cohort, older patients miss the 1-year visit more often. Age is recorded for everyone. Among patients of the same age, missing the visit is unrelated to their 1-year result.

    Mechanism for scenario 2
  3. In a depression trial, patients whose mood has worsened since the last visit stop answering the questionnaire. Nothing recorded so far predicts who worsens.

    Mechanism for scenario 3
  4. In a survey, people with the highest incomes leave the income question blank more often than others with the same education, job and age.

    Mechanism for scenario 4
  5. In a diabetes registry, HbA1c is missing more often in patients from rural centres. The centre is recorded. Within a centre, whether HbA1c was measured is unrelated to its value.

    Mechanism for scenario 5
  6. The research assistant was on leave for two weeks and nobody collected the questionnaires of patients seen in that period. The leave dates were unrelated to the patients.

    Mechanism for scenario 6

Comparison

Missing at random or missing not at random: what is the difference?

FeatureMissing at random (MAR)Missing not at random (MNAR)
Missingness depends onVariables you have recordedThe missing value itself, even after allowing for recorded variables
Clinical exampleOlder patients miss the follow-up visit; age is recordedPatients whose mood worsened stop answering the questionnaire
Complete-case analysisOften biased (unbiased in some special cases, below)Biased
Multiple imputationUnbiased if the imputation model includes the variables that predict missingnessIts bias may be as big as or bigger than that of complete cases
Can the data tell you which?No. MAR and MNAR cannot be distinguished using observed dataNo
What to doMultiple imputation or a mixed model as the primary analysisSensitivity analyses under a range of MNAR assumptions

The default

What does your software do with a missing value?

Most procedures silently drop every patient with a missing value in any variable the analysis uses. This is complete-case (listwise) analysis. In R, lm() does this by default.

AgeSexBMIHbA1cBPeGFRSmokerOutcome1234567891011123 of 12patients left10 blank cells,9 patients dropped
With several variables, scattered gaps remove many patients. If each of 10 variables is missing independently in 5% of patients, only 0.9510 = 60% of patients have complete data.

When a complete-case analysis is acceptable

  • Data are MCAR. The estimate is not biased, only less precise.
  • Only the outcome is missing, measured once, and all variables associated with the outcome being missing are included as covariates (under MAR). Sterne and colleagues note that such analyses will not be biased.
  • Only predictors are missing, for reasons unrelated to the outcome. There is no bias, but multiple imputation can recover lost precision.
  • Very little is missing. Jakobsen and colleagues give a rule of thumb: complete-case analysis may be the primary analysis if under about 5% is missing and particular patient groups (the very sick or the very well) are not lost from one of the compared groups.

Otherwise complete-case analysis carries a risk of overestimating benefit and underestimating harm. It is still the most common approach: in 77 trials published in 2013 in the BMJ, JAMA, Lancet and NEJM, 73 had missing outcome data and 33 of those used complete cases for the primary analysis (Bell et al., 2014).

Single imputation

Why does filling in the mean or the last value mislead?

Both give every missing patient one invented value and then analyse it as if it had been measured.

All 20 patients: mean 150.8, SD 19.9Six highest missing, filled in with the mean: mean 140.6, SD 10.36 identical filled-in values120140160180200systolic BP, mmHg
Made-up teaching data. When the six highest BP values are missing, filling each gap with the mean of the other 14 keeps the biased mean of 140.6 mmHg and piles six identical values on one point. The SD falls from 19.9 to 10.3 mmHg, so CIs become too narrow and p-values too small.
LOCF records 20score actually 16, not seendrops out036912months162024
Last observation carried forward (LOCF) assumes nothing changes after a patient drops out. In a condition that worsens over time this is optimistic. The EMA guideline gives Alzheimer's disease as the example: an LOCF analysis is very likely to give overly optimistic results for both treatment groups, and if patients on the active drug withdraw earlier the comparison may be biased in favour of the drug.
  • Mean imputation puts every missing value at the centre, which reduces the variability of the data.
  • LOCF and baseline observation carried forward give unbiased estimates only under restrictive assumptions. Depending on the disease and who drops out, LOCF can make a treatment look better or worse, and it is not always conservative (EMA, 2010).
  • Every single-imputation method treats invented values as real, so standard errors are too small (Sterne et al., 2009). The NRC panel recommended that LOCF and baseline observation carried forward should not be used as the primary approach unless their assumptions are scientifically justified.

Multiple imputation

How does multiple imputation fill the gaps without pretending to know the values?

It fills each gap several times with different plausible values, analyses every completed dataset, and combines the results so that the uncertainty about the missing values is included in the standard error.

1. Data with gaps2. Five filled-in copies3. Analyse each-3.1-2.6-3.4-2.9-2.54. Combine (Rubin's rules)−2.90 (−5.17 to −0.63)0
Made-up teaching numbers (the worked example below). The estimates differ between the copies only because the filled-in values differ. That spread is added to the ordinary standard error by Rubin's rules, so the pooled CI (−5.17 to −0.63) is wider than any single copy would suggest.
  1. Choose the imputation model: predict each variable with missing values from the others. Include the outcome, every variable in the planned analysis, and variables that predict the missing values or the reason they are missing.
  2. Create m completed datasets. Each missing value is a prediction plus random variation, and the model's coefficients are themselves drawn with their uncertainty. The mice package in R uses m = 5 by default. The trial in the paper below used 50.
  3. Run the planned analysis, unchanged, in each dataset.
  4. Combine the m estimates with Rubin's rules (formula below).

Multiple imputation by chained equations (MICE) imputes one variable at a time, each from its own regression model, cycling through the variables. It assumes MAR. If the data are MNAR, its bias can be as large as that of complete cases. Leaving the outcome out of the imputation model is a known error: in the QRISK example described by Sterne and colleagues, it contributed to an unexpected null association between cholesterol and cardiovascular risk.

Interactive

Change who drops out and watch complete cases, LOCF and multiple imputation against the true difference

A made-up trial in which the whole truth is known, analysed the four ways used in real papers.

Try this: start at 25% missing on placebo and 15% on the drug, with MAR dropout. Multiple imputation gives −2.50 against the true −2.41, while complete cases give −1.36 with a CI that includes 0. Then choose MNAR: multiple imputation moves to −1.99.

Teaching example with made-up data: 100 patients per arm, depression score at baseline, week 6 and week 12 (lower is better). Some week-12 scores are missing. Estimate = drug mean minus placebo mean at week 12, with 95% CI.

25%
15%
Why patients drop out

Patients whose score was still high at week 6 are more likely to stop attending. The week-6 score is recorded, so it can be used.

AnalysisDifference (95% CI)p
All patients (only possible in a simulation)−2.41 (−4.06 to −0.76)0.004
Complete cases only−1.36 (−3.00 to +0.29)0.105
Last observation carried forward−2.14 (−3.94 to −0.34)0.020
Multiple imputation (20 imputations)−2.50 (−4.28 to −0.72)0.006

Missing week-12 scores: 25 on placebo, 15 on the drug

All patientsComplete cases onlyLast observation carried forwardMultiple imputation (20 imputations)-6-4-20favours drug ← difference in points → favours placebo

Missing data in trials

If outcomes are missing, is your analysis still intention to treat?

Intention to treat means analysing every randomised patient in the group they were allocated to. A patient without an outcome can be included only by making an assumption about that missing outcome.

  • Prevention comes first. The NRC panel concluded that there is no foolproof way to analyse substantial amounts of missing data, and that the key is to design and conduct the trial to limit the problem.
  • Stopping treatment is not leaving the study. Too many investigators stop recording outcomes when a patient stops the drug. Continuing to measure these patients keeps an intention-to-treat analysis possible.
  • ICH E9(R1) makes the same distinction. Discontinuing randomised treatment is an intercurrent event, handled in the definition of the question (the estimand). Withdrawal from the study gives missing data, handled in the analysis.
  • Recruiting extra patients does not fix it. Inflating the sample size for expected dropouts restores precision but does nothing about bias from dropouts who differ from completers.
  • Report it. CONSORT 2025 asks for losses and exclusions after randomisation in each group with reasons (item 22b), who was included in each analysis (21b) and how missing data were handled (21c).

Sensitivity analysis

How do you show that the result does not depend on the MAR assumption?

Repeat the analysis under different, plausible assumptions about the missing values and see whether the conclusion changes.

ICH E9(R1) defines a sensitivity analysis as a series of analyses that explore whether the inferences from the main estimator still hold when its underlying assumptions are not met, and gives tipping point analysis as an example. Common approaches:

  • Best-worst and worst-best case: give all missing patients in one group a good outcome and in the other a bad one, then reverse. This shows the widest range of uncertainty for a yes/no outcome (Jakobsen et al., 2017).
  • Delta adjustment (offset): assume that patients who dropped out have a mean outcome that differs by δ from similar patients who stayed, impute with that shift, and vary δ. The NRC panel describes this pattern-mixture approach.
  • Tipping point: increase δ until the conclusion changes, then judge whether a difference that large is clinically plausible.
  • Complete cases alongside multiple imputation: report both. Where they differ, Sterne and colleagues advise explaining why.

Interactive

Make the missing drug-arm patients worse and find the tipping point

Each step re-imputes the missing scores with a shift added. The tipping point is the smallest shift at which the 95% CI includes zero.

Try this: move the shift from 0 upwards and watch the upper end of the confidence interval. Stop where it reaches 0: that shift is the tipping point.

Same made-up trial as above, with 25% of placebo and 15% of drug week-12 scores missing (MAR dropout). Shift = how many points worse the missing drug-arm patients are assumed to be than the imputation model predicts. Each shift re-runs 20 imputations.

0.0 points

0 = the MAR assumption. Larger = missing patients did worse

−2.50points (95% CI −4.28 to −0.72), p = 0.006

At a shift of 0.0 points the confidence interval still excludes 0, so the conclusion that the drug lowers the score holds. Tipping point: 4.2 points. Ask whether missing patients doing that much worse is clinically plausible.

0-4-2tipping point 4.202468shift added to imputed drug-arm scores (points)

Decide

Which approach fits your missing data?

Answer two or three questions. Each answer links to the section that explains it.

Where are the values missing?

Handling missing data: all possible answers
  • Complete-case analysis: Jakobsen and colleagues suggest it as the primary analysis when under about 5% is missing and particular patient groups are not lost from one arm. Report the numbers missing in each group.
  • Multiple imputation under MAR: Include the outcome, every variable in the analysis and the variables that predict missingness in the imputation model. Then test the MAR assumption with sensitivity analyses.
  • Complete cases, then sensitivity analyses: With missing values only in the outcome and no auxiliary variables, complete-case analysis may be the primary analysis (Jakobsen et al.). Check the conclusion with best-worst and worst-best or delta-adjusted analyses.
  • Complete cases need not be biased: Missing predictor values do not bias a complete-case analysis if the reasons are unrelated to the outcome (Sterne et al.). You still lose precision, which multiple imputation can recover.
  • Mixed model or multiple imputation: Use every visit each patient attended. Mixed models and multiple imputation can be valid under MAR. Do not carry the last value forward.

Comparison

Complete-case analysis or multiple imputation: which should you report?

Usually both, with one named as the primary analysis in the protocol.

FeatureComplete-case analysisMultiple imputation
Patients usedOnly those with every variable recordedEveryone, with missing values filled in several times
Unbiased whenData are MCAR, or in the special cases aboveData are MAR and the imputation model includes the predictors of missingness
Standard errorsCorrect for the patients analysedInclude the uncertainty about the missing values (Rubin's rules)
Work neededNone: the software defaultAn imputation model, a chosen number of imputations, checks of imputed values
If data are MNARBiasedCan be as biased as complete cases
ReportingNumbers excluded in each group and whyImputation model variables, method, number of imputations, and the complete-case result for comparison

The formula

Rubin's rules: combining the results of m imputed datasets

Average the estimates, and add the variation between imputations to the average variance within them.

Q̄ = (1/m) Σ Qᵢ  ·  W̄ = (1/m) Σ SEᵢ²  ·  B = Σ(Qᵢ − Q̄)² ÷ (m − 1)

T = W̄ + (1 + 1/m) × B  ·  SE = √T

Qᵢ, SEᵢ
estimate and standard error from imputed dataset i
W̄
within-imputation variance: the uncertainty there would be with complete data
B
between-imputation variance: the extra uncertainty because values were missing
df
Rubin (1987): (m − 1) × (1 + W̄ ÷ [(1 + 1/m)B])². The mice package in R uses the Barnard-Rubin small-sample version

Worked example: five imputations

Made-up teaching numbers. Difference in week-12 depression score (drug − placebo) from five imputed datasets:

Imputation12345
Estimate Qᵢ−3.1−2.6−3.4−2.9−2.5
SEᵢ1.101.051.121.081.06
  1. Q̄ = (−3.1 − 2.6 − 3.4 − 2.9 − 2.5) ÷ 5 = −2.90.
  2. W̄ = (1.10² + 1.05² + 1.12² + 1.08² + 1.06²) ÷ 5 = 1.171.
  3. B = [(−0.2)² + 0.3² + (−0.5)² + 0² + 0.4²] ÷ 4 = 0.54 ÷ 4 = 0.135.
  4. T = 1.171 + 1.2 × 0.135 = 1.333, so SE = 1.155. Using the average SE alone (√1.171 = 1.082) would understate the uncertainty.
  5. df = 4 × (1 + 1.171 ÷ 0.162)² = 271, critical t = 1.969.

−2.90 ± 1.969 × 1.155 → 95% CI −5.17 to −0.63, p = 0.013

The share of the total variance due to missing data, (1 + 1/m)B ÷ T, is 0.162 ÷ 1.333 = 12% here. The mice package reports it as lambda.

In a real paper

Multiple imputation and a tipping-point analysis in a randomised trial

Open-access paper · CC BY

Guillaumier A, Spratt NJ, Pollack M, Baker A, Magin P, Turner A, et al. Evaluation of an online intervention for improving stroke survivors' health-related quality of life: A randomised controlled trial. PLoS Med. 2022;19(4):e1003966.

The study: A randomised trial of an online healthy-lifestyle programme in 399 stroke survivors in Australia. The primary outcome, self-rated health on the EQ-VAS (0 to 100) at 6 months, was missing for 15 of 200 control and 28 of 199 intervention participants.

What the authors wrote
“Missing data were assumed to be missing at random (MAR). Multiple imputation using the chained regression equation method with 50 imputations was used. Model estimates were pooled across imputations using Rubin’s method.”
In plain words

The authors assumed that, once the recorded variables were taken into account, whether a participant's 6-month score was missing did not depend on the score itself (MAR). They filled in the missing values 50 times with chained equations (MICE), ran the analysis in each of the 50 datasets, and combined the results with Rubin's rules. They then tested the MAR assumption with a tipping-point analysis.

ReportedValueWhat it means
Participants with the 6-month outcome185 of 200 control, 171 of 199 intervention356 of 399 (89%); more were lost from the intervention group
Median EQ-VAS difference, complete cases5.00 (0.79, 9.21), p = 0.020Median quantile regression in the 356 participants with follow-up
Same analysis after multiple imputation4.64 (0.12, 9.16), p = 0.044Pooled over 50 imputed datasets under MAR: slightly smaller, lower limit close to 0
Tipping pointshift parameter of −3If participants with missing data scored 3 points lower than MAR predicts, the difference would lose statistical significance
Check these when you read it
  • Losses were unequal: 28 in the intervention group against 15 in the control group. The authors wrote that a 3-point difference between those with and without data "is not unrealistic".
  • Compare the complete-case and imputed results: the conclusion held under MAR, but the tipping point was small, so it may not hold if the data are MNAR.
  • The primary analysis changed from linear regression in the protocol to median quantile regression, because the residuals were skewed and heteroskedastic. Check the stated reason for any change of analysis.

How to run it

How to run multiple imputation

Every step below was checked against the official documentation. Steps that could not be checked are left out.

R (mice package)

library(mice)
md.pattern(d)                          # display the missing-data patterns
imp <- mice(d, m = 20, seed = 2029)    # default m = 5; default method for numeric data is "pmm"
fit <- with(imp, lm(hamd12 ~ arm + hamd0 + hamd6))   # the analysis, run in every imputed dataset
summary(pool(fit))                     # Rubin's rules; df with the Barnard-Rubin adjustment

naniar::mcar_test(d)                   # Little's test of missing completely at random
lm(hamd12 ~ arm, data = d)             # na.action default na.omit: complete cases only

SPSS Statistics

These procedures need SPSS Statistics Professional Edition or the Missing Values option. The documentation pages retrieved give the dialog names but not the menu path, so the steps below name the dialogs.

  1. Little's MCAR test: in the Missing Value Analysis dialog box, click EM, then OK. The test appears in footnotes to each EM estimate table. Its null hypothesis is that the data are missing completely at random.
  2. Analyze Patterns (a Multiple Imputation procedure): select at least two analysis variables. The output can include a summary of missing values, the patterns of missing values, and the variables with the highest percentage missing.
  3. Impute Missing Data Values (Multiple Imputation): select at least two variables for the imputation model, set the number of imputations (default 5), and name a dataset or file for the imputed data. The new dataset contains the variable Imputation_ (0 for the original data), which SPSS defines as a split variable.
  4. Run the planned analysis on the imputed dataset. Procedures that support pooling, such as the Independent-Samples T Test, automatically give results for each imputation, the original data and pooled results.
DATASET DECLARE imputedData.
MULTIPLE IMPUTATION hamd0 hamd6 hamd12
 /IMPUTE METHOD=AUTO NIMPUTATIONS=20
 /OUTFILE IMPUTATIONS = imputedData.

jamovi

The jamovi documentation checked for this chapter gives no steps for multiple imputation. The BSS module in the jamovi library lists “missing value analysis and data imputation using the missRanger and MICE” among its features, but its documentation gives no step-by-step instructions, so none are given here.

How to report it

What to write about missing data

Numbers missing in each group and why, the assumption, the method with enough detail to repeat it, and a sensitivity analysis.

Methods:

“Week-12 scores were assumed to be missing at random given baseline and week-6 scores. Missing scores were imputed 20 times from a linear regression on baseline and week-6 scores within each arm, and estimates were combined with Rubin's rules. In a sensitivity analysis, imputed scores in the drug arm were made progressively worse to find the shift at which the conclusion changed.”

Results (the trial in the interactive elements):

“Week-12 scores were missing for 25 of 100 patients on placebo and 15 of 100 on the drug. After multiple imputation the difference was −2.50 points (95% CI −4.28 to −0.72). The complete-case estimate was −1.36 (−3.00 to 0.29). The 95% CI included zero if missing drug-arm patients were assumed to score 4.2 points worse than predicted.”

Sterne and colleagues (2009) also ask authors to report the number of imputed datasets and the variables in the imputation model, to compare patients with and without missing data, and, where possible, to give the complete-case results for comparison.

By specialty

Missing data problems by specialty

A diabetes registry has HbA1c missing more often in patients from rural centres. Within a centre, testing does not depend on the HbA1c value.

Missing at random given the centre. Include the centre in the imputation model or in the analysis.

Common myths

Common mistaken beliefs

  • Myth: Missing at random means the missing patients are just like the others.

    MAR means missingness depends only on recorded variables. The missing patients may be very different, for example older.

  • Myth: Under 5% missing never matters.

    The rule of thumb (Jakobsen et al., 2017) also requires that particular patient groups are not lost from one of the compared groups.

  • Myth: Filling gaps with the mean is harmless.

    It lowers the SD: in the teaching example from 19.9 to 10.3 mmHg. Single imputation often underestimates variability.

  • Myth: LOCF is always conservative.

    The EMA guideline states that in some situations LOCF does not produce conservative estimates, and in a worsening disease it is likely to be optimistic.

  • Myth: Multiple imputation fixes any missing data.

    It assumes MAR. When data are MNAR its bias can be as big as or bigger than that of complete cases (Sterne et al., 2009).

  • Myth: Recruiting 20% extra patients deals with dropout.

    It restores the sample size, not the comparability of the groups. Bias from dropouts who differ is unchanged (NRC panel).

  • Myth: A test can show which mechanism you have.

    Little's test can detect departures from MCAR, but MAR and MNAR cannot be distinguished using the observed data.

Why this matters to you

Five consequences of mishandling missing data

  1. Protocol sent back

    A protocol needs the expected losses, how they will be prevented, the primary method for missing data and the sensitivity analysis.

  2. A thesis result on a biased subset

    Software drops incomplete patients without warning. The analysed patients may no longer be the randomised groups.

  3. Questions you cannot answer at the viva

    "How many were lost from each group, why, and what did you assume about them?" needs numbers and a reason.

  4. Misreading papers

    Of 73 trials in top journals with missing outcomes, 45% used complete cases and 8% multiple imputation for the primary analysis (Bell et al., 2014). Many results rest on untested assumptions.

  5. Harm to patients

    When data are not MCAR, complete-case analysis risks overestimating benefit and underestimating harm (Jakobsen et al., 2017).

History

History of methods for missing data

  1. 1976

    Donald Rubin

    Published "Inference and missing data" in Biometrika, the framework of missing-data mechanisms behind the terms used today.

  2. 1987

    Donald Rubin

    Published Multiple Imputation for Nonresponse in Surveys, the source of the combining rules now called Rubin's rules.

  3. 2007

    STROBE initiative

    The STROBE statement for observational studies asked authors to explain how missing data were addressed and to report the number of participants with missing data for each variable.

  4. 2009

    Jonathan Sterne and colleagues

    Found 59 articles using multiple imputation in four general medical journals from 2002 to 2007. Only seven fully reported both imputed and complete-case results.

  5. 2010

    European Medicines Agency

    Adopted the Guideline on Missing Data in Confirmatory Clinical Trials (in force from 1 January 2011), with cautions on LOCF.

  6. 2012

    Roderick Little and colleagues

    Summarised in the NEJM the National Research Council panel report requested by the FDA in 2008: prevent missing data, avoid LOCF as the primary method, and run sensitivity analyses.

  7. 2019

    ICH

    Adopted the E9(R1) addendum on estimands and sensitivity analysis (20 November 2019), separating intercurrent events from missing data.

  8. 2025

    CONSORT 2025 group

    Added item 21c to the trial reporting checklist: how missing data were handled in the analysis.

Guidelines

Missing data in guidelines

CONSORT 2025, items 21c and 22b

“How missing data were handled in the analysis.” “For each group, losses and exclusions after randomisation, together with reasons.”

STROBE (2007), items 12c and 14b

“Explain how missing data were addressed.” “Indicate the number of participants with missing data for each variable of interest.”

ICH E9(R1) (2019), glossary

Missing data: “Data that would be meaningful for the analysis of a given estimand but were not collected.”

EMA Guideline on Missing Data in Confirmatory Clinical Trials (2010), section 6.3.1

“Only under certain restrictive assumptions does LOCF produce an unbiased estimate of the treatment effect.”

National Research Council panel (Little et al., NEJM 2012)

Single-imputation methods such as LOCF should not be used as the primary approach “unless the assumptions that underlie such methods are scientifically justified.”

Reading a paper

Five checks on how a paper handled missing data

  • Are the numbers with missing outcome data given for each group, with reasons?
  • Is the assumed mechanism (MCAR, MAR, MNAR) stated, and is it plausible for how the data were collected?
  • Which method was used? Single imputation such as LOCF or mean imputation needs a stated justification.
  • For multiple imputation: are the number of imputations and the variables in the imputation model reported?
  • Is there a sensitivity analysis under other assumptions, and does the conclusion survive it?

Why is it called that?

Word surgery

“Random”

In everyday speech

Haphazard, without any pattern.

In research

In "missing at random", missingness may follow a clear pattern (older patients miss visits) as long as that pattern is explained by recorded variables.

“Imputation”

In everyday speech

Blaming someone, attributing a fault.

In research

Filling in a missing value with an estimated one. Multiple imputation does this several times to show the uncertainty.

Memory trick

MCAR: missing for no reason. MAR: missing for a reason you recorded. MNAR: missing for a reason you did not record, often the missing value itself.

Impute

Latin imputare: "to reckon, make account of, charge, ascribe"

To bring a value into the reckoning: a missing value is replaced by an estimate.

Attrition

Latin atterere: "to wear, rub away"

The loss of participants from a study over time. Attrition bias arises when those lost differ from those who stay.

MCAR, MAR, MNAR

Missing Completely At Random · Missing At Random · Missing Not At Random

The three mechanisms. Read them as statements about what missingness depends on, not about whether the missing patients are typical.

Exam answers

Short-note outlines

Types of missing data, with clinical examples

  1. Definition: missing data are values that would be meaningful for the analysis but were not collected (ICH E9(R1)). A quality-of-life score after death is not missing data in this sense.
  2. MCAR: missingness unrelated to any patient characteristic. Example: a freezer failure destroys a batch of samples. Complete-case analysis is unbiased but less precise.
  3. MAR: missingness depends only on recorded variables. Example: older patients miss follow-up and age is recorded. Multiple imputation or mixed models using age are unbiased.
  4. MNAR: missingness depends on the missing value itself. Example: patients whose depression worsens stop attending. Only sensitivity analyses can address it.
  5. Key point: MAR and MNAR cannot be distinguished from the observed data. The assumption is argued from how the data arose.
  6. Prevention: minimise losses at the design stage, record reasons for missing values, and keep measuring patients who stop treatment.

Methods of handling missing data, with merits and demerits

MethodWhat it doesMeritsDemerits
Complete-case (listwise)Drops patients with any missing valueSimple. Unbiased under MCARLoses patients. Biased if not MCAR
Mean imputationReplaces each gap with the variable's meanKeeps nReduces the SD. SEs too small
LOCF / BOCFCarries the last (or baseline) value forwardSimple in repeated measuresAssumes no change after dropout. Bias in either direction. SEs too small
Multiple imputationm datasets with plausible values, combined by Rubin's rulesUses all data. Unbiased under MAR. SEs include the uncertainty about missing valuesNeeds a correct imputation model. Biased under MNAR
Mixed models (repeated measures)Uses every observed visitValid under MAR if correctly specifiedNeeds a statistician. Still assumes MAR

Rubin's rules: T = W̄ + (1 + 1/m)B. Worked example: five estimates with mean −2.90, W̄ 1.171, B 0.135, SE 1.155, 95% CI −5.17 to −0.63.

Missing data and sensitivity analysis in randomised trials

  1. ITT and missing outcomes: analysing all randomised patients requires an assumption about those without an outcome.
  2. Treatment discontinuation vs withdrawal: ICH E9(R1) treats stopping treatment as an intercurrent event (part of the estimand) and study withdrawal as missing data.
  3. Primary analysis: usually multiple imputation or a mixed model under MAR. The NRC panel advises against LOCF as the primary method unless its assumptions are justified.
  4. Sensitivity analyses: best-worst and worst-best cases, delta-adjusted imputation, tipping-point analysis, and complete-case results alongside.
  5. Example: Guillaumier et al. (PLoS Med 2022): 50 imputations under MAR gave 4.64 (0.12 to 9.16). The result would lose significance at a shift of −3 points.
  6. Reporting: CONSORT 2025 items 21b, 21c, 21d and 22b.

The one thing to remember

Prevent missing data first. Then state why values are missing, analyse under a stated assumption, and show whether the conclusion changes when that assumption is wrong.

The worked example, figures and interactive elements use made-up numbers for teaching. Every statistic was computed in Python (SciPy 1.15, statsmodels 0.14) or checked against it.

Sources: Guillaumier A et al. PLoS Med 2022;19(4):e1003966 (doi:10.1371/journal.pmed.1003966, PMID 35439246). Sterne JAC, White IR, Carlin JB, et al. BMJ 2009;338:b2393 (doi:10.1136/bmj.b2393, PMID 19564179). Little RJ, D'Agostino R, Cohen ML, et al. N Engl J Med 2012;367(14):1355–60 (doi:10.1056/NEJMsr1203730, PMID 23034025). Jakobsen JC, Gluud C, Wetterslev J, Winkel P. BMC Med Res Methodol 2017;17:162 (doi:10.1186/s12874-017-0442-1, PMID 29207961). Bell ML, Fiero M, Horton NJ, Hsu CH. BMC Med Res Methodol 2014;14:118 (doi:10.1186/1471-2288-14-118, PMID 25407057). Rubin DB. Biometrika 1976;63(3):581–92 (doi:10.1093/biomet/63.3.581). Rubin DB. Multiple Imputation for Nonresponse in Surveys. New York: Wiley; 1987 (doi:10.1002/9780470316696). van Buuren S, Groothuis-Oudshoorn K. J Stat Softw 2011;45(3) (doi:10.18637/jss.v045.i03). von Elm E et al. STROBE statement. PLoS Med 2007;4(10):e296 (PMID 17941714); Vandenbroucke JP et al. STROBE explanation and elaboration. PLoS Med 2007;4(10):e297 (PMID 17941715). Hopewell S et al. CONSORT 2025 statement. BMJ 2025;389:e081123 (PMID 40228833). ICH E9(R1) addendum on estimands and sensitivity analysis, 20 November 2019. European Medicines Agency. Guideline on Missing Data in Confirmatory Clinical Trials. EMA/CPMP/EWP/1776/99 Rev. 1, 2010. R documentation for mice, naniar and stats, accessed 15 September 2026.

Further reading: Indrayan A, Malhotra RK. Medical Biostatistics. 4th ed. Boca Raton: CRC Press; 2018. ISBN 978-1-4987-9953-9.