Re: [R-sig-eco] gam variable selection

2011-09-29 Thread Rebecca Ross
Hi All, Many thanks for your different perspectives on stepwise model building and the dredge function, you've helped me out as well as Marco and I shall read more thoroughly into all your points. All the best, Bex ___ R-sig-ecology mailing list

Re: [R-sig-eco] gam variable selection

2011-09-28 Thread Rebecca Ross
(Gavin Simpson) -- Message: 1 Date: Tue, 27 Sep 2011 08:54:52 +0200 From: Marco Helbich marco.helb...@gmx.at To: r-sig-ecology@r-project.org Subject: [R-sig-eco] gam variable selection Message-ID: 4e81733c.8090...@gmx.at Content

Re: [R-sig-eco] gam variable selection

2011-09-28 Thread Marco Helbich
Hello Bex, thanks for the detailed answer. You mentioned a function called dredge, perhaps you still know the corresponding package? Again, thanks Gavin and Bex for you advices and patience! Marco ___ R-sig-ecology mailing list

Re: [R-sig-eco] gam variable selection

2011-09-28 Thread Dunbar, Michael J.
...@r-project.org] On Behalf Of Rebecca Ross Sent: 28 September 2011 10:45 To: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] gam variable selection Hi Marco, Having recently been working with gams myself I would suggest a procedure whereby you build your model in a forward stepwise approach

Re: [R-sig-eco] gam variable selection

2011-09-28 Thread Gavin Simpson
) -- Message: 1 Date: Tue, 27 Sep 2011 08:54:52 +0200 From: Marco Helbich marco.helb...@gmx.at To: r-sig-ecology@r-project.org Subject: [R-sig-eco] gam variable selection Message-ID: 4e81733c.8090...@gmx.at Content-Type: text/plain; charset=ISO-8859-15

[R-sig-eco] gam variable selection

2011-09-27 Thread Marco Helbich
Dear list, I am studying the influence of several environmental factors (numeric dummies) on species densities (= numeric) using the gam() function with a gaussian link function in the mgcv package. As stated in Wood (2006) there is no variable selection algorithm. Is it an appropriate

Re: [R-sig-eco] gam variable selection

2011-09-27 Thread Gavin Simpson
On Tue, 2011-09-27 at 08:54 +0200, Marco Helbich wrote: Dear list, I am studying the influence of several environmental factors (numeric dummies) on species densities (= numeric) using the gam() function with a gaussian link function in the mgcv package. As stated in Wood (2006) there is

Re: [R-sig-eco] gam variable selection

2011-09-27 Thread Marco Helbich
Gavin, thank you for your reply, I appreciate it! After consulting the proposed paper, I have tried your suggestion setting select = T, which results again in another question: If the p-value is NA does this mean that the smoothing term is droped (or shrank to zero)? Independent of its high

Re: [R-sig-eco] gam variable selection

2011-09-27 Thread Marco Helbich
thank you for clarifying. so I can remove them all at once. best marco Am 27.09.2011 13:50, schrieb Gavin Simpson: On Tue, 2011-09-27 at 13:42 +0200, Marco Helbich wrote: Gavin, thank you for your reply, I appreciate it! After consulting the proposed paper, I have tried your suggestion

Re: [R-sig-eco] gam variable selection

2011-09-27 Thread Gavin Simpson
On Tue, 2011-09-27 at 14:40 +0200, Marco Helbich wrote: thank you for clarifying. so I can remove them all at once. Given their effects are already removed you could just work with the model *as is*. If you refit, you might have to be careful to ensure that the same model (and smooth