IniziaInizia gratis

Parts of non-linear function

GAMs are made up of basis functions that together compose the smooth terms in models.

You can use the coef() function to extract the coefficients from the GAM model object.

After extracting the coefficients, answer the question:
How many coefficients are there for the basis functions that compose the smooth curve in this model?

Questo esercizio fa parte del corso

Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Extract the model coefficients
___
Modifica ed esegui il codice