getCategoryFrequenciesForest: retrieves category frequency information of a forest

Description Usage Arguments Details Value See Also Examples

Description

Given a randomForest-object this function retrieves the category frequencies for each tree of the considered forest.

Usage

1

Arguments

rFobject

A randomForest object

X

A matrix containing the SNPs used in the analysis

Details

This function basically applies getCategoryFrequenciesTree to each tree in the forest.

Value

A list of length rFobject$ntree containing objects as they are returned by getCategoryFrequenciesTree.

See Also

getCategoryFrequenciesNode, getCategoryFrequenciesTree

Examples

1
2
3
4
5
6
7
8
9
## data
YX <- simulateSNPdata(seed = 123)

## forest
rF <- randomForest(x = YX[ , -1], y = YX[ , 1], keep.forest = TRUE, 
		keep.inbag = TRUE, importance = TRUE, ntree = 500)
		
## category frequencies
cF <- getCategoryFrequenciesForest(rF, YX[ , -1])

adibender/rFtools documentation built on May 14, 2019, 5:13 a.m.