treesize: Size of trees in an ensemble

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

Description

Size of trees (number of nodes) in and ensemble.

Usage

1
treesize(x, terminal=TRUE)

Arguments

x

an object of class snpRF, which contains a forest component.

terminal

count terminal nodes only (TRUE) or all nodes (FALSE

Value

A vector containing number of nodes for the trees in the snpRF object.

Note

The snpRF object must contain the forest component; i.e., created with snpRF(...,keep.forest=TRUE).

Author(s)

Andy Liaw, with slight modifcations for use with snpRF by Greg Jenkins

See Also

snpRF

Examples

1
2
3
4
5
data(snpRFexample)
eg.rf <- snpRF(x.autosome=autosome.snps,x.xchrom=xchrom.snps,
               xchrom.names=xchrom.snps.names,x.covar=covariates, 
               y=phenotype)
hist(treesize(eg.rf))

snpRF documentation built on May 2, 2019, 6:51 a.m.

Related to treesize in snpRF...