Summary method for the dtree function

# S3 method for dtree
summary(object, input = TRUE, output = FALSE, dec = 2, ...)

Arguments

object

Return value from simulater

input

Print decision tree input

output

Print decision tree output

dec

Number of decimals to show

...

further arguments passed to or from other methods

Details

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

See also

dtree to generate the results

plot.dtree to plot results

sensitivity.dtree to plot results

Examples

dtree(movie_contract, opt = "max") %>% summary(input = TRUE)
#> Decision tree input: #> name: Sign contract #> variables: #> legal fees: 5000 #> type: decision #> Sign with Movie Company: #> cost: legal fees #> type: chance #> Small Box Office: #> p: 0.3 #> payoff: 200000 #> Medium Box Office: #> p: 0.6 #> payoff: 1000000 #> Large Box Office: #> p: 0.1 #> payoff: 3000000 #> Sign with TV Network: #> payoff: 900000 #>
dtree(movie_contract, opt = "max") %>% summary(input = FALSE, output = TRUE)
#> Variable input values: #> #> legal fees 5000 #> #> Initial decision tree: #> Probability Payoff Cost Type #> Sign contract #> ¦--Sign with Movie Company 5,000.00 decision #> ¦ ¦--Small Box Office 30.00 % 200,000.00 chance #> ¦ ¦--Medium Box Office 60.00 % 1,000,000.00 chance #> ¦ °--Large Box Office 10.00 % 3,000,000.00 chance #> °--Sign with TV Network 900,000.00 decision #> #> Final decision tree: #> Probability Payoff Cost Type #> Sign contract 955,000.00 #> ¦--Sign with Movie Company 955,000.00 5,000.00 decision #> ¦ ¦--Small Box Office 30.00 % 200,000.00 chance #> ¦ ¦--Medium Box Office 60.00 % 1,000,000.00 chance #> ¦ °--Large Box Office 10.00 % 3,000,000.00 chance #> °--Sign with TV Network 900,000.00 decision