[R] GAMs in R : How to put the new data into the model?

pigpigmeow glorykwok at hotmail.com
Wed Sep 28 11:10:35 CEST 2011


For example: 
GAMs and after stepwise regression:
cod<-gam(newCO~RH+s(solar,bs="cr")+windspeed+s(transport,bs="cr"),family=gaussian
(link=log),groupD,methods=REML)

I used 10 year meterorology data (2000-2010) to form equation of
concentration of carbon monoxide.
NOW, I have 2011 meteorology data, I want to use the above GAMs to get the
predict value of concentration of carbon monoxide.

How can I put the 2011 data into this gam and get the expected value of
concentration of Carbon monoxide??


--
View this message in context: http://r.789695.n4.nabble.com/GAMs-in-R-How-to-put-the-new-data-into-the-model-tp3849851p3850473.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list