if (FALSE) { # rlang::is_installed("gam")
# load libraries for models and data
library(gam)
# fit model
g <- gam(mpg ~ s(hp, 4) + am + qsec, data = mtcars)
# summarize model fit with tidiers
tidy(g)
glance(g)
}
Run the code above in your browser using DataLab