About using GAM Models in R
Currently I'm replicating the exercise did by Wood (2006) about the relationship between air pollution and death rates in Chicago, using GAM models.
So, I followed the code he used in his book. The library is called "gamair" and the data frame is "chicago".
I put this (exactly like the book):
But I got an error:
Somebody could explain me this?
Thank you so much.