powered by
The standard resampling with replacement (bootstrap) is used as sampling strategy.
baggedtrees(form, data, ntree = 100)
formula
training data
no of trees
ensemble <- baggedtrees(Species ~., iris, ntree = 50)
Run the code above in your browser using DataLab