Session Ready
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.