Unfortunately that's not really an R question. I recommend that you read up on the statistical methods underneath. One that I'd wholeheartedly recommend is Prof. Harrell's `Regression Modeling Strategies'.
[BTW, there are now two implementations of gam() in R: one in `mgcv', which is fairly different from that in `gam'. I'm guessing you're referring to the one in `gam', but please remember to state which contributed package you're using, along with version of R and OS.] Cheers, Andy > From: Janice Tse > > Hi all, > > I'm a new user of R gam() function. I am wondering how do > we decide on the > smooth function to use? > The general form is gam(y~s(x1,df=i)+s(x2,df=j).......) , > how do we decide > on the degree freedom to use for each smoother, and if we shold apply > smoother to each attribute? > > Thanks!! > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
