[R] help with step()

From: Smith, Phil <pzs6_at_CDC.GOV>
Date: Tue 28 Feb 2006 - 04:02:31 EST


I'm having trouble doing a forward variable selection using step()  

First, I fit an initial model:  

fit0 <- glm ( est~1 , data=all, subset=c(n>=25) )  

then I invoke step():  

fit1 <- step( fit0 , scope=list(upper=est~ pcped + pchosp + pfarm ,lower=est~1))    

I get the error message: Error in eval(expr, envir, enclos) : invalid 'envir' argument  

I looked at the documention on step(). There is no 'envir' arguement.  

Can anyone shed light on what I'm doing wrong?  

Phil Smith
CDC           [[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 Received on Tue Feb 28 04:17:49 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:45 EST