count.surrogates: Count surrogate variables

View source: R/count.surrogates.R

count.surrogatesR Documentation

Count surrogate variables

Description

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).

Usage

count.surrogates(trees)

Arguments

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

Value

List with the following components:

  • s.a: total average number of surrogate variables

  • s.l: average number of surrogate variables in the respective layers


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