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

Exercise

Purchase behavior with multiple smooths

In this exercise, you will fit a logistic GAM that predicts the outcome (purchase) in csale, using all other variables as predictors.

After summarizing the model, answer the following question:

Which term in the model is significant but approximately linear?

Instructions 1/2

undefined XP
    1
    2
  • Fit a logistic GAM on all variables.
  • Print the summary of the model.