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

Connected

Exercise

Fixing problems with model diagnostics

You can use gam.check() to improve models by updating them based on its results.

Instructions

100 XP
  • Run the model diagnostics on mod.
  • Based on the diagnostics, re-fit the model as mod2, changing the number of basis functions (k) for failing smooths.
  • Run the model diagnostics on mod2 to ensure you have fixed the issue.