
Last chance! 50% off unlimited learning
Sale ends in
Create a decision tree
dtree(yl, opt = "max", base = character(0), envir = parent.frame())
A list with the initial tree, the calculated tree, and a data.frame with results (i.e., payoffs, probabilities, etc.)
A yaml string or a list (e.g., from yaml::yaml.load_file())
Find the maximum ("max") or minimum ("min") value for each decision node
List of variable definitions from a base tree used when calling a sub-tree
Environment to extract data from
See https://radiant-rstats.github.io/docs/model/dtree.html for an example in Radiant
summary.dtree
to summarize results
plot.dtree
to plot results
sensitivity.dtree
to plot results
yaml::as.yaml(movie_contract) %>% cat()
dtree(movie_contract, opt = "max") %>% summary(output = TRUE)
dtree(movie_contract)$payoff
dtree(movie_contract)$prob
dtree(movie_contract)$solution_df
Run the code above in your browser using DataLab