\item{forest}{a list containing \code{allvariables} and \code{trees}.
\item{forest}{a list containing `allvariables` and `trees`.
Allvariables is a vector of all variable names in the original data set (strings).
Allvariables is a vector of all variable names in the original data set (strings).
Trees is a list of trees that was generated by \code{\link[=getTreeranger]{getTreeranger()}},
Trees is a list of trees that was generated by [getTreeranger()],
\code{\link[=addLayer]{addLayer()}}, and \code{\link[=addSurrogates]{addSurrogates()}}.}
[addLayer()], and [addSurrogates()].}
\item{s.l}{Number of average surrogate variables in the respective layers.
\item{s.l}{Number of average surrogate variables in the respective layers.
(use \code{\link[=count.surrogates]{count.surrogates()}} function to get it)}
(use [count.surrogates()] function to get it)}
}
}
\value{
\value{
List with the following components:
List with the following components:
\itemize{
* `depth`: mean surrogate minimal depth for each variable
\item \code{depth}: mean surrogate minimal depth for each variable
* `selected`: variables has been selected (1) or not (0),
\item \code{selected}: variables has been selected (1) or not (0),
* `threshold`: the threshold that is used for the selection
\item \code{threshold}: the threshold that is used for the selection
}
}
}
\description{
\description{
This function determines the surrogate minimal depth of variables from a
This function determines the surrogate minimal depth of variables from a
forest that is created by \code{\link[=getTreeranger]{getTreeranger()}}, \code{\link[=addLayer]{addLayer()}} and \code{\link[=addSurrogates]{addSurrogates()}} functions.
forest that is created by [getTreeranger()], [addLayer()] and [addSurrogates()] functions.