Assumed you are using the gam package developed by Hastie, you might use step.gam() to do so.
On 4/2/07, Jin Huang <[EMAIL PROTECTED]> wrote: > Dear all, > > When using GAM function in R, we need to specify the degree of freedom for > the smooth function (i.e. s=(x, df=#)). I am wondering how to choose an > appropriate df. > > Thanks a lot, > Jin > ---- > North Carolina State University > USA > > > --------------------------------- > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.