Description Usage Arguments Value Note Author(s) See Also Examples
Combine two or more more ensembles of trees into one.
1 |
... |
list of two or more objects of class |
An object of class snpRF
.
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
.
Andy Liaw, with slight modifications for use with snpRF by Greg Jenkins
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.