dtree_split_val: Getting the split value for terminal nodes from decision tree

Description Usage Arguments Value Author(s) Examples

View source: R/functions.R

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

1
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.

Author(s)

Arya Poddar <aryapoddar290990@gmail.com>

Examples

1
2
data <- iris
data$Y <- ifelse(data$Species=="setosa",1,0)

scorecardModelUtils documentation built on May 2, 2019, 9:59 a.m.