library(randomForest)
data(mtcars)
sampsize = c(5, 5)
rf <- randomForest(factor(am) ~ ., data = mtcars, ntree = 10)
plotInbag(rf)
rf <- randomForest(factor(am) ~ ., data = mtcars, ntree = 1000)
plotInbag(rf)
rf <- randomForest(factor(am) ~ ., data = mtcars, ntree = 10000)
plotInbag(rf)
Run the code above in your browser using DataLab