LoslegenKostenlos loslegen

Predicting purchase behavior and uncertainty

The log_mod2 purchase behavior model lets you make predictions off credit data. In this exercise, you'll use a new set of data, new_credit_data, and calculate predicted outcomes and confidence bounds.

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

Diese Übung ist Teil des Kurses

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Calculate predictions and errors
predictions <- ___(log_mod2, newdata = ___, 
                       type = ___, se.fit = ___)

# Inspect the predictions
predictions
Code bearbeiten und ausführen