Correctly handle missing values statistically

Handling missing values correctly in statistical analysis

A dataset may appear complete at first glance, until empty cells suddenly appear in SPSS, R, or Excel. Anyone who has to statistically address missing values will quickly face a consequential decision: delete cases, replace values, or choose a method that accounts for missing information directly in the model? The wrong choice can distort the sample, effect sizes, and conclusions. The right choice makes your analysis transparent and defensible.

Why missing values are more than a data problem

Missing values are rarely random and caused by purely technical reasons. Participants skip sensitive questions, drop out of a survey, fail to show up for a follow-up, or measuring devices experience individual failures. In medical studies, for example, laboratory values are more frequently missing for severely ill individuals. In questionnaire studies, income, psychological distress, or sexual behavior are often selectively left unanswered.

This means that not only the number of missing values is relevant, but also their cause. Ten percent missing information may be uncritical if it is indeed randomly distributed. Two percent, on the other hand, can become problematic if a specific patient group or a key predictor is affected.

A common mistake is to remove missing values without comment. While this is quickly done, it does not answer the methodological question of whether the remaining cases still represent the population under investigation. Especially in bachelor's and master's theses, as well as dissertations, examiners expect a reasoned decision, not just a default setting in the statistical software.

Addressing missing values statistically: The mechanism matters

The scientific literature distinguishes three central mechanisms. This classification is not a theoretical detail, but the basis for choosing an appropriate method.

MCAR: completely missing at random

In the case of "Missing Completely at Random," the missingness is not related to observed or unobserved data. A technical transmission error affecting individual questionnaires independently of the respondents' characteristics would be a possible example.

Under MCAR, complete case analysis, also known as listwise deletion, can be justifiable. Only individuals who have valid values for all required variables are included in the analysis. However, the sample size and thus the statistical power decrease. In small samples, this is often a considerable risk.

MAR: missing at random, accounting for observed data

In the case of "Missing at Random," the missingness can be explained by variables present in the dataset. If younger participants are less likely to report their income, but age was collected, the income gap can be treated as MAR, accounting for age.

In research, MAR is often the practically relevant assumption. Methods such as multiple imputation or maximum likelihood estimation are generally more suitable for this than deleting complete cases. They use the available information from other variables without pretending that the missing information is arbitrary.

MNAR: not missing at random

In the case of "Missing Not at Random," the missing information is related to the unobserved value itself. Individuals with particularly severe depressive symptoms might not complete a corresponding scale precisely because of this. This case is methodologically challenging because the assumption usually cannot be reliably tested using the available data alone.

This requires expert arguments, a transparent discussion, and often sensitivity analyses. Imputation does not automatically solve the problem. It is also based on assumptions and can lead to misleading confidence in the case of MNAR.

First check, then decide

Before applying a method, you need a structured overview. First report for each relevant variable how many values are missing and what proportion of the sample this represents. In longitudinal studies, it should also be visible at which measurement time point dropouts occur.

Then compare individuals with and without missing values. Do the groups differ in terms of age, gender, diagnosis, baseline value, or other important characteristics? Such comparisons do not prove an MAR or MNAR mechanism, but they provide reliable clues. Missingness indicators, in which "missing" is coded as its own variable, can also make associations with observed characteristics visible.

The Little MCAR test is often used, but should not be used to decide in isolation. In small samples, it may not detect relevant deviations, while in large samples it sometimes reacts to practically insignificant differences. The key is therefore the combination of data checking, study design, and expert knowledge of the data collection process.

Which methods make sense in practice

A method is not good because it is technically sophisticated. It must fit the research question, data structure, sample size, and plausible missingness assumption.

Complete case analysis: only with a good justification

Complete case analysis is transparent and is the default setting in many programs. It can make sense if the proportion of missing values is very low, MCAR seems plausible, and enough cases remain for a precise analysis.

It becomes problematic when several variables each have only a few gaps. Then the loss can add up significantly across the variables. A regression with originally 250 cases can quickly be based on only 160 complete observations. This not only worsens the power but can also create systematic biases.

Simple replacement: rarely the best solution

Mean imputation, median replacement, or inserting zeros are often chosen because they are uncomplicated. However, these methods are usually unsuitable for a scientific main analysis. They underestimate the variance, change correlations, and make standard errors appear too small.

Simple replacement may only be justifiable in cases with clearly defined scale rules, for example if at most one item is missing on a validated scale and the manual explicitly allows a person mean. This is different from the blanket replacement of missing variable values throughout the entire dataset.

Multiple imputation: often the scientifically stronger option

With a plausible MAR assumption, multiple imputation is often a very good solution. It creates several plausible versions of the missing values, analyzes each complete dataset separately, and then combines the results according to established rules. This takes the uncertainty of the replacement into account.

The imputation model should include not only the variables of the subsequent main analysis. Auxiliary variables that are related to the missingness or the values to be imputed are also useful. In a study on treatment success, baseline severity, age, treatment group, and earlier measurement time points may be relevant, for example.

The method requires careful implementation. Scale level, distributions, interactions, and possible non-linearities must be considered. Dichotomous, ordinal, and continuous variables must not be treated with identical model assumptions. The number of imputed datasets should also match the proportion of missing data and be justified.

Model-based methods and special cases

In mixed models for longitudinal data, maximum likelihood is often used directly. Under MAR, this approach can include all available measurement time points without completely excluding individuals due to a single missing follow-up. This is often more sensible than a classic analysis of variance with complete cases, especially in clinical and repeated-measures designs.

For categorical endpoints, complex survey data, or very small samples, additional requirements apply. The substantive cause is also central when data are missing due to a study dropout. A dropout due to side effects must be assessed methodologically differently than a move or a technical failure.

How to document your decision with scientific rigor

A convincing methods section makes the path to the analysis transparent. State the extent of missing data, the affected variables, and the method used. Briefly explain why the underlying assumption is plausible. For multiple imputation, the number of imputations, the included variables, and the analysis and pooling procedure must also be included in the report.

Phrases such as "missing values were replaced" are not sufficient. Reviewers, assessors, and journals must be able to understand what was replaced and what consequences this has for the uncertainty of the results. Good reporting also shows whether a sensitivity analysis was conducted, for example, a comparison of results after complete case analysis and multiple imputation.

If both approaches lead to similar conclusions, this strengthens confidence in your result. If the results differ significantly, this is not embarrassing, but an important scientific finding: The conclusion apparently depends on assumptions about the missing data.

Typical mistakes you should avoid

The code 99, -9, or "no information" is particularly frequently analyzed as a regular numerical value by mistake. Therefore, check the coding before every analysis and define missing values correctly in your software. It is also problematic to delete cases simply because a variable is missing from the dataset that is not needed for the specific analysis at all.

Also avoid the assumption that a small overall proportion of missing data is automatically harmless. A key target variable can be more affected by a few selective dropouts than ten minor variables with higher, random missing proportions. Statistics does not start here with a click on "Impute," but with an understanding of your data collection.

For complex datasets, a methodological check before the final analysis is worthwhile. Easy Statistik supports research projects with individual advice from PhD statisticians, from missing data diagnostics and implementation in R, SPSS, Stata, or Python to transparent reporting. Use the contact form to have your planned treatment of missing values checked before it makes your results unnecessarily vulnerable to criticism.


Put knowledge into practice

From explanation
to your own analysis.

Would you like to know which method suits your project? We review your plans free of charge and give you a clear recommendation.

Your question deserves a personal answer.

Describe your project. We will assess free of charge what support would be right for you.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.