combine: Combine Ensembles of Trees

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Combine two more more ensembles of trees into one.

Usage

1

Arguments

...

two or more objects of class randomForest, to be combined into one.

Value

An object of class randomForest.

Note

The confusion, err.rate, mse and rsq components (as well as the corresponding components in the test compnent, if exist) of the combined object will be NULL.

Author(s)

Andy Liaw andy\_liaw@merck.com

See Also

randomForest, grow

Examples

1
2
3
4
5
6
data(iris)
rf1 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf2 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf3 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf.all <- combine(rf1, rf2, rf3)
print(rf.all)

Example output

randomForest 4.6-12
Type rfNews() to see new features/changes/bug fixes.

Call:
 randomForest(formula = Species ~ ., data = iris, ntree = 50,      norm.votes = FALSE) 
               Type of random forest: classification
                     Number of trees: 150
No. of variables tried at each split: 2

randomForest documentation built on May 2, 2019, 5:54 p.m.