selFreq | R Documentation |
counts how many times each predictor variable was selected for splitting
in a random forest. Only implemented for cforest
form the party
package.
selFreq(object, whichxnames = NULL)
object |
an object as returned by |
whichxnames |
a character vector containing the predictor variable names that for which the permutation importance should be computed. See section 'Details'. |
Function selFreq
counts how many times each predictor variable was
selected for splitting in a random forest. In the current implementation this
selFreq
can only be applied to random forests as returned by
cforest
.
An object of class VarImp
, with as $values
the mean of
the sum of the selection frequencies across the trees.
VarImp
,
set.seed(290875)
readingSkills.cf <- party::cforest(score ~ ., data = party::readingSkills,
control = party::cforest_unbiased(mtry = 2, ntree = 100))
## Selection Frequency
selFreq(readingSkills.cf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.