sensitivity.dtree: Evaluate sensitivity of the decision tree

Description Usage Arguments Details See Also Examples

View source: R/dtree.R

Description

Evaluate sensitivity of the decision tree

Usage

1
2
3
## S3 method for class 'dtree'
sensitivity(object, vars = NULL, decs = NULL,
  shiny = FALSE, custom = FALSE, ...)

Arguments

object

Return value from dtree

vars

Variables to include in the sensitivity analysis

decs

Decisions to include in the sensitivity analysis

shiny

Did the function call originate inside a shiny app

custom

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

Details

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

See Also

dtree to generate the result

plot.dtree to summarize results

summary.dtree to summarize results

Examples

1
2
3
4
5
6
dtree(movie_contract, opt = "max") %>% 
  sensitivity(
    vars = "legal fees 0 100000 10000", 
    decs = c("Sign with Movie Company", "Sign with TV Network"), 
    custom = FALSE
  )

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