Description Usage Arguments Details Value See Also Examples
Given a randomForest
-object this function retrieves the category frequencies
for each tree of the considered forest.
1 | getCategoryFrequenciesForest(rFobject, X)
|
rFobject |
A |
X |
A |
This function basically applies getCategoryFrequenciesTree
to each tree in the forest.
A list
of length rFobject$ntree
containing objects as they are
returned by getCategoryFrequenciesTree
.
getCategoryFrequenciesNode
, getCategoryFrequenciesTree
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])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.