snpRF (version 0.4)

combine: Combine Ensembles of Trees

Description

Combine two or more more ensembles of trees into one.

Usage

combine(...)

Arguments

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

Value

An object of class snpRF.

See Also

snpRF, grow

Examples

Run this code
data(snpRFexample)
rf1 <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
             xchrom.names=xchrom.snps.names,x.covar=covariates, 
             y=phenotype,ntree=50, norm.votes=FALSE)
rf2 <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
             xchrom.names=xchrom.snps.names,x.covar=covariates, 
             y=phenotype,ntree=50, norm.votes=FALSE)
rf3 <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
             xchrom.names=xchrom.snps.names,x.covar=covariates, 
             y=phenotype,ntree=50, norm.votes=FALSE)

rf.all <- combine(rf1, rf2, rf3)
print(rf.all)

Run the code above in your browser using DataCamp Workspace