Displaying 1 result from an estimated 1 matches for "naivelr".
Did you mean:
naively
2009 Nov 16
1
object not found inside step() function
...inside the function.
I did some search online. i guess the reason may be R did not keep the data
in glm() output after building the model but not sure.
Can anyone please tell me how to work around this problem?
Thanks a lot in advance.
I am using R 2.9.0. Here is the sample code:
#------------
naivelr<-function(x,y){
:
:
:
a<-data.frame(x)
form<-paste("y~1+",paste(grep("X.*",names(a),value=T),collapse="+"),sep="")
if(is.null(force.in)!=T){
lowmo<-paste("y~1+",paste(grep("X.*",names(a)[force.in],value=T),collapse="+&q...