LoslegenKostenlos loslegen

Significance and linearity (I)

It's time for you to summarize a model and interpret the output.

After summarizing the model, you will answer the following question:

Which smooth term in this model is significant and linear?

Diese Übung ist Teil des Kurses

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

library(mgcv)
# Fit the model
mod_city4 <- gam(city.mpg ~ s(weight) + s(length) + s(price) + s(rpm) + s(width),
                 data = mpg, method = "REML")

# View the summary
___
Code bearbeiten und ausführen