Last chance! 50% off unlimited learning
Sale ends in
Evaluate sensitivity of the decision tree
# S3 method for dtree
sensitivity(object, vars = NULL, decs = NULL,
shiny = FALSE, custom = FALSE, ...)
Return value from dtree
Variables to include in the sensitivity analysis
Decisions to include in the sensitivity analysis
Did the function call originate inside a shiny app
Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This option can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and http://docs.ggplot2.org for options.
Additional arguments
See https://radiant-rstats.github.io/docs/model/dtree.html for an example in Radiant
dtree
to generate the result
plot.dtree
to summarize results
summary.dtree
to summarize results
# NOT RUN {
dtree(movie_contract, opt = "max") %>%
sensitivity(
vars = "legal fees 0 100000 10000",
decs = c("Sign with Movie Company", "Sign with TV Network"),
custom = FALSE
)
# }
Run the code above in your browser using DataLab