si_dexi: Compute Sensitivity Index (SI) for Decision Tree

View source: R/sensitivity_index.R

si_dexiR Documentation

Compute Sensitivity Index (SI) for Decision Tree

Description

Computes the Sensitivity Index (SI) for each node within a specified decision tree.

Usage

si_dexi(
  tree,
  file_name = "SI_out.csv",
  is_file = FALSE,
  avoid_repetition = FALSE
)

Arguments

tree

A Tree object on which the analysis will be executed.

file_name

character designating the filename to store the SI. Default is "SI_out.csv".

is_file

logical determining whether to save the SI results to a file. Defaults to FALSE

avoid_repetition

logical indicating if repeated nodes should be disregarded. Defaults to FALSE.

Value

A list containing the Sensitivity Indices for every node in the tree.

Examples

tree <- dexisensitivity::masc2
sensitivity_index <- si_dexi(tree)
sensitivity_index


dexisensitivity documentation built on Oct. 30, 2024, 1:08 a.m.