Get startedGet started for free

Soil pollution in different land uses

The meuse data set has a factor variable, landuse, which specifies the type of land use or cover at the location where soil was sampled.

This exercise is part of the course

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Fit a model with separate smooths for each land-use level
mod_sep <- ___

# Examine the summary
___
Edit and Run Code