Re: [R] Different results from random.Forest with test option and using predict function

2012-12-04 Thread Liaw, Andy
org Subject: [R] Different results from random.Forest with test option and using predict function Hello R Gurus, I am perplexed by the different results I obtained when I ran code like this: set.seed(100) test1<-randomForest(BinaryY~., data=Xvars, trees=51, mtry=5, seed=200) predict(test1, newdat

Re: [R] Different results from random.Forest with test option and using predict function

2012-12-03 Thread Peter Langfelder
On Mon, Dec 3, 2012 at 3:30 PM, tdbuskirk wrote: > > Hello R Gurus, > > I am perplexed by the different results I obtained when I ran code like > this: > set.seed(100) > test1<-randomForest(BinaryY~., data=Xvars, trees=51, mtry=5, seed=200) > predict(test1, newdata=cbind(NewBinaryY, NewXs), type="

[R] Different results from random.Forest with test option and using predict function

2012-12-03 Thread tdbuskirk
Hello R Gurus, I am perplexed by the different results I obtained when I ran code like this: set.seed(100) test1<-randomForest(BinaryY~., data=Xvars, trees=51, mtry=5, seed=200) predict(test1, newdata=cbind(NewBinaryY, NewXs), type="response") and this code: set.seed(100) test2<-randomForest(Bina