powered by
It is much easier to use this constructor to create an instance of the StochasticDominance class. It handles calculation of the cdf and ssd values in an efficient way.
createStochasticDominance(outcome1, outcome2, prob1, prob2)
StochasticDominance object.
Numeric vectors. The outcomes corresponding to each prospect.
Numeric vectors. The probabilities corresponding to each prospect.
[StochasticDominance()]
createStochasticDominance(outcome1 = c(1,4,7), outcome2 = c(2,3,5), prob1 = c(1/3,1/3,1/3), prob2 = c(1/6,1/6,2/3))
Run the code above in your browser using DataLab