Re: [R] randomForest set.seed()

2015-07-09 Thread Jeff Newmiller
Please post in plain text, and supply a reproducible example (that includes sample data, preferably using the dput function). The below code obtains repeatable random number sequences in each pass through the loop, as confirmed by the first value in each sequence. ## a <- 0 ## ## For loop to

[R] randomForest set.seed()

2015-07-09 Thread Joao Carreiras
Dear forum members, ​I wrote a piece of code to test various combinations of mtry and ntree, so that the best combination (in terms of mse​) could be used. Before each randomForest command I included a set.seed() command, so that I can keep track of the seed number and replicate the results. Howev