addLayer: Add layer information to a forest that was created by...

View source: R/addLayer.R

addLayerR Documentation

Add layer information to a forest that was created by getTreeranger

Description

This functions adds the layer information to each node in a list with trees that was obtained by getTreeranger.

Usage

addLayer(trees)

Arguments

trees

list of trees created by getTreeranger

Value

a list with trees. Each row of the list elements corresponds to a node of the respective tree and the columns correspond to:

  • nodeID: ID of the respective node (important for left and right daughters in the next columns)

  • leftdaughter: ID of the left daughter of this node

  • rightdaughter: ID of the right daughter of this node

  • splitvariable: ID of the split variable

  • splitpoint: splitpoint of the split variable

  • status: "0" for terminal and "1" for non-terminal

  • layer: layer information (0 means root node, 1 means 1 layer below root, etc)


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