Skip to contents

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() and layers, surrogate variables, and adjusted agreement values were added by addLayer() and addSurrogates().

Value

A List with the following components:

  • s.a: total average number of surrogate variables

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