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

Connected

Exercise

Modeling soil pollution in the Netherlands

Let's take a closer look at the meuse data and use it to fit your first 2-D model.

Unless otherwise mentioned, assume that mgcv is loaded in your workspace going forward.

After reviewing the model you will fit, answer the following question: How many basis functions are used in the two-dimensional smooth?

Instructions 1/3

undefined XP
    1
    2
    3

Inspect the meuse data with the head() and str() functions.