Missing data: types and what to do

Analytika TeamLast reviewed 8 min read

Participants skip questions, sensors fail, and records are incomplete. How you handle the gaps can change your results as much as which test you choose, yet missing data are often handled silently by software defaults. This lesson covers how to describe missingness, the three types, and the main ways to deal with it.

The three types of missingness

TypeMeaningExample
MCAR: missing completely at randomMissingness is unrelated to anything, observed or notA lab sample is dropped by accident
MAR: missing at randomMissingness depends on observed variables, but not on the missing value itselfOlder participants skip an online item more often, and age is recorded
MNAR: missing not at randomMissingness depends on the unobserved value itselfPeople with high incomes decline to report income

The names are confusing (MAR isn’t “random” in the everyday sense), but the distinction matters. Under MCAR, simple deletion is unbiased. Under MAR, principled methods such as multiple imputation give unbiased results. Under MNAR, no standard method fully fixes the problem, and sensitivity analyses are needed.

Step 1: describe the missingness

R’s airquality data record daily ozone, temperature and wind in New York over 153 days in 1973. Here’s Analytika’s missing-data report for four of the variables:

Analytika engine output (abridged, rounded and wrapped)
MISS_VAR: {"variable": "Ozone", "missing": 37, "percent": 24.18}
MISS_VAR: {"variable": "Month", "missing": 0, "percent": 0.0}
MISS_VAR: {"variable": "Temp", "missing": 0, "percent": 0.0}
MISS_VAR: {"variable": "Wind", "missing": 0, "percent": 0.0}
MISS_TOTAL: {"cells": 37, "of": 612, "complete_rows": 116, "rows": 153}
MISS_PATTERN: {"pattern": ".", "rows": 116}
MISS_PATTERN: {"pattern": "M", "rows": 37}
MISS_MCAR: {"statistic": 0.4681, "df": 2, "p": 0.7913, "patterns": 2,
  "variables": ["Ozone", "Temp", "Wind"]}
  • Ozone is missing on 37 of 153 days (24.2%). The other variables are complete.
  • Two patterns: 116 complete days, and 37 days missing only ozone.
  • Little’s MCAR test: χ²(2) = 0.47, p = .79. There’s no evidence that ozone’s missingness relates to temperature or wind.

The counts, patterns and MCAR test match R, and they’re part of Analytika’s test suite. Our free missing data report gives the counts and patterns in your browser.

What Little’s test can and can’t tell you

A non-significant result is consistent with MCAR, but it doesn’t prove it. The test can’t detect MNAR, because that depends on values you never observed, and it has low power in small samples. Treat it as one piece of evidence alongside what you know about how the data were collected.

Step 2: choose a strategy

Listwise (complete-case) deletion

Analyse only rows with no missing values on the variables in the analysis. It’s the default in most software, including Analytika, which reports how many rows each analysis excluded. It’s unbiased under MCAR. But it throws away information (here a quarter of the days), and it can bias results under MAR.

Pairwise deletion

Use all available data for each pair of variables, as in a correlation matrix. This keeps more data, but different statistics then rest on different subsets, which can produce inconsistent results.

Mean imputation (avoid)

Filling gaps with the variable’s mean shrinks its variance, weakens correlations, and makes standard errors too small. It’s simple, and it’s almost always worse than deletion.

Multiple imputation

Create several plausible completed datasets (often 20 or more), each filling the gaps with predictions plus random noise based on the other variables. Then analyse each one and pool the results with Rubin’s rules, so the uncertainty about the missing values carries into the standard errors. It’s valid under MAR and is the standard recommendation. Analytika can run regressions with multiple imputation, pooled with Rubin’s rules.

Maximum likelihood

Methods such as full-information maximum likelihood (FIML) in SEM, and mixed-effects models for repeated measures, use every available observation directly. They’re also valid under MAR.

Practical guidance

  • Below about 5% missing, plausibly MCAR: listwise deletion is usually fine. Report it.
  • More missing, or MAR plausible: use multiple imputation or maximum likelihood, including variables that predict missingness.
  • MNAR suspected: say so, and run sensitivity analyses under different assumptions.
  • Prevention beats cure: required fields, follow-up reminders and pilot testing reduce missingness at source.
  • Watch for disguised missing values: codes like 99, −999 or blank strings must be recoded to missing before analysis (see data cleaning mistakes).

Reporting

Ozone was missing on 37 of 153 days (24.2%); other variables were complete. Little’s MCAR test was not significant, χ²(2) = 0.47, p = .79, and analyses used complete cases (n = 116).

More in Preparing your data

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