Re: [R] model selection with step function

2005-11-25 Thread P Ehlers
Antonio, Antonio Olinto wrote: > Dear Ehlers, thanks for your message. > > Following the example on stepAIC and Venebles & Ripley’s book, it seems that > update rearranges the terms. I didn’t understand how to indicate the formula > in > the function. > > I have the initial model U ~ var1+var2+

Re: [R] model selection with step function

2005-11-25 Thread Antonio Olinto
Dear Ehlers, thanks for your message. Following the example on stepAIC and Venebles & Ripley’s book, it seems that update rearranges the terms. I didn’t understand how to indicate the formula in the function. I have the initial model U ~ var1+var2+var3+var4 (family Gaussian). I want first to sele

Re: [R] model selection with step function

2005-11-24 Thread P Ehlers
Antonio Olinto wrote: > Hello, > > I have a doubt in using the function step (step wise) to select glm models. > > Usually I apply the gamma distribution to analyze fishery data. To select the > terms I use a routine where I first compare single term models to the null > model > (eg. U~1 vs. U

[R] model selection with step function

2005-11-24 Thread Antonio Olinto
Hello, I have a doubt in using the function step (step wise) to select glm models. Usually I apply the gamma distribution to analyze fishery data. To select the terms I use a routine where I first compare single term models to the null model (eg. U~1 vs. U~depth; U~1 vs. U~latitude; etc. – where