1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Regression in R

Exercise

Logistic regression prediction

As with linear regression, the joy of logistic regression is that you can make predictions. Let's step through the prediction flow one more time!

churn and mdl_churn_vs_both_inter are available; dplyr, tidyr and ggplot2 are loaded.

Instructions 1/3

undefined XP
    1
    2
    3

Create a grid of explanatory variables.

  • Set time_since_first_purchase to a sequence from minus two to four in steps of 0.1.
  • Set time_since_last_purchase to a sequence from minus one to six in steps of 0.1.