Program data and common statistics

What Does Data Cleaning Mean?

Data cleaning is the process of identifying and resolving errors, inconsistencies and duplicate records in a dataset before or during analysis. The decisions should be documented so that another analyst can understand what changed.

In practice

How Data Cleaning works in context

  1. Why it matters

    Why does Data Cleaning matter?

    An impossible date, duplicated patient or miscoded result can change a count or estimate. Cleaning rules also affect which observations remain in an analysis, so undocumented choices can make results difficult to reproduce or evaluate.

  2. Worked example

    What does Data Cleaning look like in practice?

    A resident reviewing a quality improvement dataset finds two rows with the same encounter identifier and a discharge date before admission. She checks the source records, removes the duplicate according to the project's rule, and flags the date for correction. The team records both decisions and compares record counts before and after cleaning.

  3. Commonly confused terms

    What is Data Cleaning commonly confused with?

    Cleaning corrects data handling problems using defined rules and available evidence. It is not permission to replace an inconvenient but valid observation. Missing-data handling and deduplication are related tasks that should be described with the rest of the data preparation.

Interpretation guide

Use Data Cleaning accurately

What the term tells you

Define valid ranges, duplicate rules and missing-value codes before examining results where possible. Keep source records intact, document each transformation in a reproducible script or log, and report exclusions and record counts. For a questionable observation without a reliable source, mark it unresolved rather than inventing a replacement value.

Keep a log of which rules changed values, combined duplicates or marked observations missing. Reproduce the original counts and check the effect on data completeness after cleaning.

Common mistakes

Changing a valid value to improve the result

Cleaning must follow evidence and defined rules, not the desired estimate.

Deleting records without an audit trail

Document exclusions and their effect on sample size.

Treating blanks as zero

A missing observation is not automatically a measured zero.

Reader checklist

Questions to ask about Data Cleaning

  1. Which rules identified invalid or duplicate records?
  2. Were corrections checked against source records?
  3. How many observations changed or were excluded?
  4. Can the cleaning steps be reproduced?
  5. How were missing values handled?

Resources

Use these tools and guides for your next step. References below identify the evidence supporting this definition.

Check the source2 resources

Editorial

References
  1. 01Analyzing and Interpreting DataSupports: Calls for examination of data quality, missing values, data manipulation and an explicit analysis plan.CDC Field Epidemiology ManualPublished Verified
  2. 02CDC Framework for Evaluating Large Health Care Data and Related ResourcesSupports: The large health data framework provides criteria for validity, completeness, timeliness and representativeness.CDCVerified
  3. 03CDC National Syndromic Surveillance Program data quality toolsSupports: CDC’s surveillance tools describe completeness, validity and visit-level checks for concrete elements.CDCVerified