dtree_split_val: Getting the split value for terminal nodes from decision tree
Description
The function takes a ctree type model, with only one numerical variable, as argument input and gives a dataframe with the minimum and maximum value of each node. The intervals are open ended at lower limit and closed at upper limit.
Usage
dtree_split_val(desc_model, variable)
Arguments
desc_model
ctree class model with one variable
variable
numerical variable name which on which decision tree was run, to be passed as string
Value
The function returns a dataframe giving the lower and upper bound of split values of each node.