Description Usage Arguments Value Author(s) Examples
View source: R/functions_utility.R
Function to compute probability that each arm is the winner, given simulated posterior results.
1 | prob_winner(post)
|
post |
Simulated results from the posterior, as provided by sim_post() |
Probabilities each arm is the winner.
Thomas Lotze and Markus Loecher
1 2 3 4 | x <- c(10,20,30,50)
n <- c(100,102,120,130)
betaPost <- sim_post(x,n)
pw <- prob_winner(betaPost)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.