View source: R/variable_selection_vita.R
holdout.rf | R Documentation |
This function calculates a modified version of the permutation importance using two cross-validation folds (holdout folds)
as described in Janitza et al. (2015). Note that this function is a reimplementation of the holdoutRF
function in the
R package ranger
.
holdout.rf( x, y, ntree = 500, mtry.prop = 0.2, nodesize.prop = 0.1, no.threads = 1, type = "regression", importance = importance )
x |
matrix or data.frame of predictor variables with variables in columns and samples in rows (Note: missing values are not allowed). |
y |
vector with values of phenotype variable (Note: will be converted to factor if classification mode is used). |
ntree |
number of trees. |
mtry.prop |
proportion of variables that should be used at each split. |
nodesize.prop |
proportion of minimal number of samples in terminal nodes. |
no.threads |
number of threads used for parallel execution. |
type |
mode of prediction ("regression", "classification" or "probability"). |
importance |
See |
Hold-out random forests with variable importance
Janitza, S., Celik, E. & Boulesteix, A.-L., (2015). A computationally fast variable importance test for random forest for high dimensional data, Technical Report 185, University of Munich, https://epub.ub.uni-muenchen.de/25587.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.