ComenzarEmpieza gratis

Examining concurvity between auto variables

Now, let's look at concurvity between model variables.

After examining the pairwise concurvity between variables in mod, answer the following question:

Which two variables have the greatest worst-case concurvity?

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 pairwise concurvity
___
Editar y ejecutar código