Description Usage Arguments Value See Also Examples
For each not terminal node in the forest this functions returns the minor allel frequency (MAF) of the variable used for splitting in the according node.
1 | getMAFofSplitVariablesForest(splitVariablesForest = list(), ...)
|
splitVariablesForest |
A |
... |
Further arguments passed to |
A list
of same length as number of trees in the forest.
Each element contains a vector
of same length as number of not terminal
nodes in the according tree. Returns the MAF of the variables used
for splitting in the according node.
Values range from 1
to length(mafIntervals)
(See. getMAFofSplitVariablesTree
), where 1
indicates the
first element of mafIntervals
.
getMAFofSplitVariablesTree
, getSplitVariablesForest
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## data
YX <- simulateSNPdata(seed = 123)
## forest
rF <- randomForest(x = YX[ , -1], y = YX[ , 1], keep.forest = TRUE,
keep.inbag = TRUE, importance = TRUE, ntree = 500)
## MAF of split variables
splitVarsF <- getSplitVariablesForest(rF)
mafF <- getMAFofSplitVariablesForest(splitVarsF)
length(mafF) == rF$ntree
mafF[[1]] # MAFs for first tree
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.