1. Learn
  2. /
  3. Courses
  4. /
  5. Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Exercise

Visualizing influences on purchase probability

Let's try plotting and interpreting the purchasing behavior model from the last lesson. You'll step through several iterations of plots of log_mod2, moving from raw plots on the fitting scale towards plots on the response scale with more natural interpretations.

The model (log_mod2) from the previous exercise is available in your workspace.

Instructions 1/4

undefined XP
  • 1

    Plot all partial effects of log_mod2 on the log-odds scale. Put all plots on a single page.

  • 2

    Convert the plots to the probability scale using the trans argument.

  • 3

    Convert the plots to probability centered on the intercept with the shift argument.

  • 4

    Add intercept-related uncertainty to the plots using the seWithMean argument.