Should I delete a row with missing data?
Distinguish missing values from zero. Explore MCAR, MAR and MNAR assumptions, complete-case analysis and multiple imputation with a worked example.
AcademicFix Editorial Team · Sources reviewed:
Hypothetical scores from 0 to 10. Zero is an observed result. A missing cell means the result is unknown.
Work through the exampleDo not delete a row or enter zero as soon as you see an empty cell. First establish what the cell means, which measurements are missing and what question the study needs to answer. There is no single missing-data method that suits every study. National Research Council, Chapter 4
Starting with an example in which 20 of 100 students have no recorded final score, this guide walks through decisions and reporting for quantitative research.
On this page
Start by checking the codes
Find the variable’s valid range and missing-value codes in the codebook. A special value recognised as missing by one program may be read as an ordinary number after import into another. In the UK Data Service example, the missing-value codes −9 and −8 need to be explicitly recoded before analysis. These are not universal codes. UK Data Service, pp. 1–3
The six records below are entirely fictional. Each score is the number of correct answers, ranging from 0 to 10. A dash denotes an unrecorded score in this display; the missing-value representation in the actual analysis file must be defined separately.
| Record | Baseline | Final score | Final measurement status |
|---|---|---|---|
| 01 | 4 | 6 | Observed |
| 02 | 6 | — | Did not attend the final session; reason unknown |
| 03 | 2 | 0 | Observed; no correct answers |
| 04 | 5 | 8 | Observed |
| 05 | 7 | — | Record file not found; cause unverified |
| 06 | 3 | 4 | Observed |
Deleting record 03’s zero would discard an observation. Replacing the missing scores for records 02 and 05 with zero would record an unmeasured outcome as “no correct answers”. In this example, the four observed final scores sum to 18 and have a mean of 4.5. Counting the two missing scores as zero produces a mean of 3: you have changed the result without obtaining the missing measurements.
Keep the raw file. Document recoding and the reasons for missingness separately. Do not fill an unknown reason with a guess.
What do MCAR, MAR and MNAR mean?
| Assumption | Meaning | Question to consider in the student example |
|---|---|---|
| MCAR | The probability of missingness does not depend on the relevant observed or unobserved data values. | Is a final score being missing independent of the student’s characteristics and score? |
| MAR | After conditioning on observed variables, missingness does not depend on the unobserved values. | Once the recorded baseline score and other relevant information are taken into account, is missingness still related to the unrecorded final score? |
| MNAR | Even after conditioning on observed variables, missingness depends on the unobserved values. | Among students with similar observed characteristics, are final results more often missing for those with lower final scores? |
These categories are not diagnoses that can be established simply by inspecting a file. In particular, MAR cannot be verified from the observed data alone. National Research Council, Chapter 4, pp. 50–54
Do not stop at “file not found”: which class, device or date was involved? If that information is unavailable, record the uncertainty.
Four records to prepare before choosing a method
- Variable summary: Report the number of valid and missing records for each variable, with the denominator used. A single percentage across all cells can conceal missing final scores.
- Pattern table: Identify the groups, measurement occasions or data-collection sessions in which values are missing. Distinguish participants missing entirely from those with one unanswered item.
- Process note: Record known reasons, the source of that information and explanations that remain unverified. Keep participant statements separate from researcher interpretations.
- Analysis decision: State the target quantity, chosen method, underlying assumption and alternative assessment. For example, a “mean final score” and “change from baseline to the final assessment” do not require identical analysis inputs.
This decision record is AcademicFix’s suggested workflow.
Choosing between complete-case analysis and multiple imputation
Complete-case analysis uses records with no missing values in the relevant analysis variables. Its validity depends on the target, model and missingness process; it is not automatically right or wrong. National Research Council, Chapter 4, pp. 55–56
Multiple imputation creates several plausible completed datasets, analyses them separately and pools the results. For example, mice provides different imputation models by variable type, predictor selection and diagnostic plots. Having these options does not mean that their assumptions are automatically satisfied. Official mice documentation
If you use the method, record the variables included in the model, imputation methods, numbers of imputations and iterations, diagnostic checks and pooling step. Do not assume the software’s default number of imputations is adequate for every study. Do not report a single completed table as the “true data”.
The NRC source concerns clinical trials; this guide draws on its general statistical principles. The student example is not clinical regulatory advice.
Sensitivity: what if the missing values were different?
Return to the fictional six-person table. If x is the mean of the two missing final scores, the mean final score for all six people is (18 + 2x) / 6. Since x must lie between 0 and 10 on this scale, these facts alone place the full-group mean between 3 and 38/6 (approximately 6.33).
This range is not a confidence interval, a multiple-imputation result or a recommended estimate. It is only a mathematical bound illustrating why information about the two unobserved values matters. In a real analysis, plausible alternative assumptions need to reflect the data-collection context. Sensitivity analysis examines how much the inference changes when those assumptions change. National Research Council, Chapter 5
What belongs in the methods section?
Fictional opening sentence: “The final measurement was missing for 20 of the 100 students with a baseline record (20%). Missing counts were reported by group and measurement occasion. Known reasons were recorded separately.”
Follow this with the method actually used, the rationale for its assumptions, the number of records analysed and the sensitivity assessment. Do not describe analyses that have not been performed as completed work.
Before returning to your study
- Have valid zeros been distinguished from missing-value codes?
- Is the denominator for every missing-data percentage clear?
- Have you recorded how many people were included in each analysis?
- Are observations, explanations and assumptions kept separate?
- Are the chosen method and alternative assumptions justified?
- Have the raw data and recoding record been preserved?
Frequently asked questions
Can I simply delete records if fewer than 5% are missing?
This guide does not use a “safe percentage” rule. The same percentage can have different implications for different variables and research questions. Consider the decision record alongside the missing-data percentage.
Can a test prove that my data are MAR?
No. Fit to the observed data does not verify the MAR assumption about unobserved values. Explain your rationale in the context of how the data were collected. National Research Council, Chapter 5
Is replacing missing values with the mean enough?
It is not an automatic solution. Filling gaps with a single value can change variability: in the UK Data Service example, the mean stays the same while the standard deviation changes. Multiple imputation also requires an appropriate model and checks. UK Data Service, pp. 7–8
Sources and scope
Sources are linked beside the methodological claims they support. The example tables are teaching illustrations, not findings from a real study.
- National Research Council: Drawing Inferences from Incomplete Data, Chapter 4
- National Research Council: Principles and Methods of Sensitivity Analyses, Chapter 5
- UK Data Service: Missing data (2019)
- mice: Multiple imputation, model specification and diagnostics
A shorter introduction appears in our Turkish Instagram post.
Continue reading
- Match your statistical analysis to the research question
- Multiple-testing decisions for more than one outcome
- Format the table you supply with the APA 7 tool