dtree: Create a decision tree

Description Usage Arguments Details Value See Also Examples

View source: R/dtree.R

Description

Create a decision tree

Usage

1
dtree(yl, opt = "max", base = character(0))

Arguments

yl

A yaml string or a list (e.g., from yaml::yaml.load_file())

opt

Find the maximum ("max") or minimum ("min") value for each decision node

base

List of variable definitions from a base tree used when calling a sub-tree

Details

See https://radiant-rstats.github.io/docs/model/dtree.html for an example in Radiant

Value

A list with the initial tree and the calculated tree

See Also

summary.dtree to summarize results

plot.dtree to plot results

sensitivity.dtree to plot results

Examples

1
2
yaml::as.yaml(movie_contract) %>% cat()
dtree(movie_contract, opt = "max") %>% summary(output = TRUE)

radiant.model documentation built on Oct. 6, 2018, 5:03 p.m.