get_prediction_terminal_node: Get prediction of the node

View source: R/get_prediction_terminal_node.R

get_prediction_terminal_nodeR Documentation

Get prediction of the node

Description

Get prediction of the node

Usage

get_prediction_terminal_node(
  tree_info_df,
  train_data_df,
  rf_list,
  dependent_var,
  tree_number,
  node_id
)

Arguments

tree_info_df

Data frame containing information about the structure of the decision tree, which is built like a "treeInfo()" data frame from the package "ranger"

train_data_df

Data frame of the training data with which the random forest was trained

rf_list

Random forest, which is built like the one you get from ranger()

dependent_var

Name of the column of the dependent variable in training data

tree_number

Number of the decision tree of the rf_list to be displayed

node_id

Node ID of the node whose parent ID is to be determined

Value

Character with the prediction of the node

Author(s)

Lea Louisa Kronziel, M.Sc.


imbs-hl/timbR documentation built on April 17, 2025, 2:08 p.m.