surrmindep: Execute surrogate minimal depth variable importance

View source: R/surrmindep.R

surrmindepR Documentation

Execute surrogate minimal depth variable importance

Description

This function determines the surrogate minimal depth of variables from a forest that is created by getTreeranger, addLayer and getSurrogates functions.

Usage

surrmindep(forest, s.l)

Arguments

forest

a list containing allvariables and trees. Allvariables is a vector of all variable names in the original data set (strings). Trees is a list of trees that was generated by getTreeranger, addLayer, and getSurrogates functions.

s.l

Number of average surrogate variables in the respective layers. (use count.surrogate function to get it)

Value

List with the following components:

  • depth: mean surrogate minimal depth for each variable

  • selected: variables has been selected (1) or not (0),

  • threshold: the threshold that is used for the selection


StephanSeifert/SurrogateMinimalDepth documentation built on Aug. 7, 2023, 1:59 a.m.