View source: R/get_uncertainty_node.R
get_uncertainty_node | R Documentation |
Get uncertainty quantification for terminal nodes (only for regression tree)
get_uncertainty_node(
tree_info_df,
rf_list,
test_data_df,
tree_number,
node_id,
dependent_var,
show_coverage = FALSE,
show_intervalwidth = FALSE
)
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) |
Character with the number of observations reaching this node
Lea Louisa Kronziel, M.Sc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.