createStochasticDominance | R Documentation |
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)
outcome1 , outcome2 |
Numeric vectors. The outcomes corresponding to each prospect. |
prob1 , prob2 |
Numeric vectors. The probabilities corresponding to each prospect. |
StochasticDominance object.
[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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.