Exercise

# Classifying purchasing behavior

Let's fit some GAMs to the `csale`

data, which has the binary `purchase`

outcome variable.

After you fit the model, answer the following question:

What does the `log_mod`

model estimate the probability of a person making a purchase who has mean values of all variables?

Instructions 1/2

**undefined XP**

Fit a logistic GAM predicting whether a `purchase`

will be made based only on a smooth of the `mortgage_age`

variable.