ComenzarEmpieza gratis

Examining overall concurvity in auto data

Let's take a look at concurvity in the fuel efficiency model variables.

After checking the overall concurvity of mod, answer the following question:

Which smooth is least pre-determined by all the other variables?

Este ejercicio forma parte del curso

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio completando el código de muestra.

library(mgcv)
# Fit the model
mod <- gam(hw.mpg ~ s(length) + s(width) + s(height) + s(weight), 
           data = mpg, method = "REML")

# Check overall concurvity
___
Editar y ejecutar código