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

Connected

Exercise

Plotting multiple auto performance variables

In plotting GAMs, you sometimes want to look at just parts of a model, or all the terms in model. Here you'll practice selecting which terms to visualize.

Instructions

100 XP
  • Plot the provided model (mod) that uses the mpg data, using the select term to view only the partial effect of price.
  • Make another plot, this time showing all terms on a single page, including the linear comp.ratio term.