R/RForestImportance2.R

Defines functions RForestImportance2

Documented in RForestImportance2

#' @title RForestImportance2
#'
#' @description FSelector::random.forest.importance default importance.type=1 mean decrease in node accuracy. This variante option is importance.type=2 mean decrease in node impurity
#' @param dataset as specified in FSelector::random.forest.importance
#' @param formula dependent and independent variables (class ~ .)
#' @return featurenames subset, ordered by its weights as specified in FSelector::random.forest.importance
#' @importFrom FSelector random.forest.importance
#' @export
#'

RForestImportance2 <- function(formula, dataset){
    return( random.forest.importance(formula, dataset, importance.type=2))
}
matpato/EEFR documentation built on Dec. 21, 2021, 2:53 p.m.