Summary method for the dtree function
# S3 method for dtree summary(object, input = TRUE, output = FALSE, dec = 2, ...)
object | Return value from |
---|---|
input | Print decision tree input |
output | Print decision tree output |
dec | Number of decimals to show |
... | further arguments passed to or from other methods |
See https://radiant-rstats.github.io/docs/model/dtree.html for an example in Radiant
dtree
to generate the results
plot.dtree
to plot results
sensitivity.dtree
to plot results
#> 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 #>#> 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