This function determines the surrogate minimal depth of variables from a forest that is created by [getTreeranger()], [addLayer()] and [addSurrogates()] functions.
Usage
surrmindep(forest, s.l = count.surrogates(forest$trees)$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 [addSurrogates()].
- s.l
Number of average surrogate variables in the respective layers. (use [count.surrogates()] function to get it)