Skip to main content
HomeR

Handling Missing Data with Imputations in R

Diagnose, visualize and treat missing data with a range of imputation techniques with tips to improve your results.

Start Course for Free
4 hours13 videos49 exercises5,160 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

Missing data is everywhere. The process of filling in missing values is known as imputation, and knowing how to correctly fill in missing data is an essential skill if you want to produce accurate predictions and distinguish yourself from the crowd. In this course, you’ll learn how to use visualizations and statistical tests to recognize missing data patterns and how to impute data using a collection of statistical and machine learning models. You’ll also gain decision-making skills, helping you decide which imputation method fits best in a particular situation. Finally, you’ll learn to incorporate uncertainty from imputation into your inference and predictions, making them more robust and reliable.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    The Problem of Missing Data

    Free

    In this chapter, you’ll find out why missing data can be a risk when analyzing a dataset. You’ll be introduced to the three missing data mechanisms and learn how to recognize them using statistical tests and visualization tools.

    Play Chapter Now
    Missing data: what can go wrong
    50 xp
    Linear regression with incomplete data
    100 xp
    Analyzing regression output
    50 xp
    Comparing models
    100 xp
    Missing data mechanisms
    50 xp
    Recognizing missing data mechanisms
    100 xp
    t-test for MAR: data preparation
    100 xp
    t-test for MAR: interpretation
    100 xp
    Visualizing missing data patterns
    50 xp
    Aggregation plot
    100 xp
    Spine plot
    100 xp
    Mosaic plot
    100 xp
  2. 2

    Donor-Based Imputation

    Get to know the taxonomy of imputation methods and learn three donor-based techniques: mean, hot-deck, and k-Nearest-Neighbors imputation. You’ll look under the hood to see how these methods work, before learning how to apply them to a real-world tropical weather dataset. Along the way, you’ll also learn useful tricks that you can use to make them work even better for your problems.

    Play Chapter Now
  3. 3

    Model-Based Imputation

    It’s time to learn how to use statistical and machine learning models, such as linear regression, logistic regression, and random forests, to impute missing data. In this chapter, you’ll look into how the models make their predictions and use this knowledge to draw the imputed values from conditional distributions. This is important as it ensures your imputations are more varied and plausible, making them more similar to the true data.

    Play Chapter Now
  4. 4

    Uncertainty from Imputation

    Imputed values are not set in stone. They are just estimates and estimates come with some uncertainty. In this final chapter, you’ll discover how bootstrapping and chained equation using the mice package can be used to incorporate imputation uncertainty into your models and analyses to make them more reliable and robust.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

datasets

Biopics datasetTropical Atmosphere Ocean dataset

collaborators

Collaborator's avatar
Amy Peterson
Collaborator's avatar
Adel Nehme
Michał Oleszak HeadshotMichał Oleszak

Machine Learning Engineer

Michał is a Machine Learning Engineering Manager based in Zurich, Switzerland. He has a background in statistics and econometrics, holding an MSc degree from Erasmus University Rotterdam, The Netherlands. He has worn many hats, having worked at a consultancy, a start-up, a software house, and a large corporation. He blogs about anything machine learning. Visit his website to find out more.
See More

What do other learners have to say?

Join over 15 million learners and start Handling Missing Data with Imputations in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.