Calculates sum of probabilities multiplied by values (e.g. cost) for all branches in decision tree.

payoff(node)

Arguments

node

The node of a data.tree package tree object

Value

jl$Do(payoff, traversal = "post-order", filterFun = isNotLeaf)

Details

(previous version: Gives maximum payoff, given optimal decisions) This is the original example using data.tree