varsRfeCV: extract cross-validated important variables

Description Usage Arguments Value Author(s)

View source: R/varsRfeCV.R

Description

this function approaches the identification of important variables from rfe more conservatively than caret. It uses the standard deviation (or standard error) of the cross-validated error metric to identify important variables.

Usage

1
2
varsRfeCV(rfe.model, metric = rfe.model$metric, maximize = FALSE,
  sderror = TRUE)

Arguments

rfe.model

a rfe model. See rfe

metric

the metric to be used. Note this needs to be the metric used to calculate the rfe model

maximize

logical: Is a higher value of the metric favourable (e.g metric = Rsquared) or not (e.g metric = RMSE). maximize=TRUE is determined automatically as long as metric is either Rsquared, ROC, Accuracy. maximize =FALSE is used for all other metrics. Set this manually if you use an other metric where higher values are favourable.

sderror

If TRUE then standard error is calculated. If FALSE then standard deviations are used

Value

a character vector of the variable names

Author(s)

Hanna Meyer, Tim Appelhans


environmentalinformatics-marburg/Rsenal documentation built on Sept. 23, 2018, 5:17 a.m.