Hi volks,

i have a question about the step() fkt. Is there a possibility to save the
last model generated from this method. I have a loop and so i generate 100
different models with the step fkt and i want to know which model is the
most common. 

CODE:
...
missStep -> numeric(100) 
for (j in 1:100) {
    trainindex <- sample(c(1:462),300)
    train <- data[trainindex,]
    test <- data[-trainindex,]
    mod.step <- step(mod, direction="both",trace=T)
                     }
...

So i want to store each iteration the best model.
Thx in advanced people,
greetings


--
View this message in context: http://r.789695.n4.nabble.com/glm-step-fkt-tp4122588p4122588.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

