Learn R Programming

snpRF (version 0.3)

grow: Add trees to an ensemble

Description

Add additional trees to an existing ensemble of trees.

Usage

## S3 method for class 'snpRF':
grow(x, how.many, ...)

Arguments

x
an object of class snpRF, which contains a forest component.
how.many
number of trees to add to the snpRF object.
...
currently ignored.

Value

  • An object of class snpRF, containing how.many additional trees.

See Also

combine, snpRF

Examples

Run this code
data(snpRFexample)
eg.rf <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
               xchrom.names=xchrom.snps.names,x.covar=covariates, 
               y=phenotype,ntree=50, norm.votes=FALSE)
eg.rf <- grow(eg.rf, 50)
print(eg.rf)

Run the code above in your browser using DataLab