4:32

In this instructional video, the presenter walks through a complete workflow for dealing with missing values in R. The narrative begins by emphasizing the importance of exploring and visualizing missingness before consulting stakeholders about business rationale. Three overarching strategies are presented: discarding data with high missingness (used sparingly), imputing missing values, and using methods that can handle missingness directly. The speaker introduces the naniar package, demonstrating functions such as anyna, vismiss, ggmisscase, and the creation of a shadow matrix to identify and visualize missing patterns, including clustering rows by missingness. The video explains the three classic missingness mechanisms—MCAR, MAR, and MNAR—and notes their implications for bias when choosing a strategy. Evaluation of imputation quality is covered via two approaches: external evaluation (building a machine‑learning model on the imputed data and comparing performance) and internal evaluation (comparing pre‑ and post‑imputation distributions of means, variances, and scales). The simputation package’s imputelm function is showcased for linear‑model based imputation, and bindrows is used to combine results from multiple imputation models into a single tidy data frame. Throughout, the presenter stresses practical considerations such as minimal loss of data, checking for bias, and visual cues that can hint at the missingness type.

Chapters

More from Richie

youtube.com

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

5mo ago
youtube.com

17.8% of the World Now Uses AI — And the Gap Is Widening | The Median #5

5mo ago
youtube.com

Create GPTs to Automate Go-To-Market Research

5mo ago
youtube.com

What Happened to Self-Driving Cars? #AI

5mo ago
youtube.com

Never Use AI For This #warning #AI #flights

5mo ago
youtube.com

Use AI Agents to Analyze Power Grid Optimization

5mo ago
youtube.com

This is how modern AI actually solves problems #AITrends #AI

5mo ago
youtube.com

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

Build an AI‑driven Dashboard

5mo ago
youtube.com

What’s Broken in Labor Markets Today #datascience

5mo ago
See all content