Exercise

Making predictions

Once your model is ready, you can use it to make predictions for a campaign. It is important to always use the latest information to make predictions.

In this exercise you will, given a fitted logistic regression model, learn how to make predictions for a new, updated basetable.

The logistic regression model that you built in the previous exercises has been added and fitted for you in logreg.

Instructions

100 XP
  • The latest data is in current_data. Create a data frame new_data that selects the relevant columns from current_data.
  • Assign to predictions the predictions for the observations in new_data.