title: About using GAM Models in R
body: <p>Currently I'm replicating the exercise did by Wood (2006) about the relationship between air pollution and death rates in Chicago, using GAM models.</p>
  
  <p>So, I followed the code he used in his book. The library is called "gamair" and the data frame is "chicago".</p>
  
  <p>I put this (exactly like the book):</p>
  
  <pre><code>gam(death~s(time,bs="cr",k=200)+pm10median+so2median+o3median+tmpd,data=chicago,family=poisson)
  </code></pre>
  
  <p>But I got an error:</p>
  
  <pre><code>Error in s(time, bs = "cr", k = 200) : 
    unused argument(s) (bs = "cr", k = 200)
  </code></pre>
  
  <p>Somebody could explain me this?</p>
  
  <p>Thank you so much.</p>