O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checking the imputations (reader exercise)

After replacing the NAs, print the resulting dataframe and compare the assigned value with the imputed value. This is just a checkpoint to make sure that your imputation went smooth and that the results are reasonable. Always look for extreme values for imputations which can tell you if something is off.

        print.data.frame(head(df[,c(           "insulin", "insulin.imp",           "glucose","glucose.imp",           "pressure","pressure.imp",           "triceps","triceps.imp",           "mass","mass.imp")],10))  

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required