Linear regression with incomplete data
Missing data is a common problem and dealing with it appropriately is extremely important. Ignoring the missing data points or filling them incorrectly may cause the models to work in unexpected ways and cause the predictions and inferences to be biased.
In this chapter, you will be working with the biopics
dataset. It contains information on a number of biographical movies, including their earnings, subject characteristics and some other variables. Some of the data points are, however, missing. The original data comes with the fivethirtyeight
R package, but in this course, you will work with a slightly preprocessed version.
In this exercise, you will get to know the dataset and fit a linear regression model to explain a movie's earnings. Let's begin!
Este exercício faz parte do curso
Handling Missing Data with Imputations in R
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Print first 10 observations
___(biopics, ___)