[R] step.gam and number of tested smooth functions

2005-10-12 Thread astrzelczak
Hi, I'm working with step.gam in gam package. I'm interested both in spline and lowess functions and when I define all the models that I'm interested in I get something like that: gam.object.ALC-gam(X143S~ALC,data=dane,family=binomial)

Re: [R] step.gam and number of tested smooth functions

2005-10-12 Thread Prof Brian Ripley
step.gam is a tricky function to use correctly. You will need to consult the original documentation (in Chambers Hastie ca 1992) or ask the package author for help. BTW, it uses loess not lowess. On Wed, 12 Oct 2005 [EMAIL PROTECTED] wrote: Hi, I'm working with step.gam in gam package.

Re: [R] step.gam- question

2005-10-12 Thread Trevor Hastie
This is covered in the helpfile, but perhaps not clearly enough. The gam chapter in the white book has more details. step.gam moves around the terms in the scope aregumnet in an ordered fashion. So if a scope element is ~ 1 + x +s(x,4) + s(x,8) and the formula at some stage is ~ x +

Re: [R] step.gam

2004-12-01 Thread Jari Oksanen
On Wed, 2004-12-01 at 17:09, David Nogués wrote: Dear R-users: Im trying (using gam package) to develop a stepwise analysis. My gam object contains five pedictor variables (a,b,c,d,e,f). I define the step.gam: step.gam(gamobject, scope=list(a= ~s(a,4), b= ~s(b,4), c= ~s(c,4), d=

Re: [R] step.gam

2004-12-01 Thread Simon Wood
Dave Roberts discusses R/S-plus (or mgcv/gam package level) gam fitting in ecological context at http://labdsv.nr.usu.edu/splus_R/lab5/lab5.html. You may find some useful hints here, as Dave is partial to the traditional S-plus gam as well. This looks good to me, too. One or two things have