View source: R/count.surrogates.R
count.surrogates | R Documentation |
This function counts surrogate variables and returns the total average number of surrogate variables and the average number of surrogate variables of the respective layers. This is necessary since the actual number of surrogate splits can be lower than the predefined number (when less surrogate splits outperform the majority rule).
count.surrogates(trees)
trees |
list of trees that was generated by getTreeranger function and layers, surrogate variables, and adjusted agreement values were added by addLayer and getSurrogates functions |
List with the following components:
s.a: total average number of surrogate variables
s.l: average number of surrogate variables in the respective layers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.