...

/

LR Implementation Steps: 4 to 7

LR Implementation Steps: 4 to 7

We will continue to go through the implementation steps (4-8) of linear regression.

4) Remove or modify variables with missing values

Our exploratory data analysis shows that missing values pose a problem for this dataset, especially since a linear regression does not run smoothly with missing values. Therefore, we need to estimate or remove these values from the data frame.

However, the data frame size will be greatly reduced if you choose to remove all missing values on a row-by-row basis. The variable BuildingArea, for instance, has 21,115 missing ...