prob_winner {bandit}R Documentation

prob_winner

Description

Function to compute probability that each arm is the winner, given simulated posterior results

Usage

prob_winner(post)

Arguments

post

the simulated results from the posterior, provided by sim_post

Author(s)

Thomas Lotze and Markus Loecher

Examples


x=c(10,20,30,50)
n=c(100,102,120,130)
betaPost = sim_post(x,n)
prob_winner(betaPost)


[Package bandit version 0.5.0 Index]