Get startedGet started for free

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.

This exercise is part of the course

Intermediate Regression in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Make a grid of explanatory data
explanatory_data <- ___(
  # Set len. relationship to seq from -2 to 4 in steps of 0.1
  ___,
  # Set recency to seq from -1 to 6 in steps of 0.1
  ___
)

# See the result
explanatory_data
Edit and Run Code