getTreeranger: Get a list of structured trees for ranger

View source: R/getTreeranger.R

getTreerangerR Documentation

Get a list of structured trees for ranger

Description

This functions creates a list of trees for ranger objects similar as getTree function does for random Forest objects.

Usage

getTreeranger(RF, ntree)

Arguments

RF

random forest object created by ranger (with keep.inbag=TRUE)

ntree

number of trees

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


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