get_uncertainty_node: Get uncertainty quantification for terminal nodes (only for...

View source: R/get_uncertainty_node.R

get_uncertainty_nodeR Documentation

Get uncertainty quantification for terminal nodes (only for regression tree)

Description

Get uncertainty quantification for terminal nodes (only for regression tree)

Usage

get_uncertainty_node(
  tree_info_df,
  rf_list,
  test_data_df,
  tree_number,
  node_id,
  dependent_var,
  show_coverage = FALSE,
  show_intervalwidth = FALSE
)

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"

rf_list

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

test_data_df

Data frame of the test 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

dependent_var

Name of the dependent variable used to create the forest

show_coverage

Option to display marginal coverage

show_intervalwidth

Option to display interval width uncertainty quantification in terminal nodes (only in combination with show_uncertainty = TRUE)

Value

Character with the number of observations reaching this node

Author(s)

Lea Louisa Kronziel, M.Sc.


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