prob_winner: prob_winner

View source: R/prob_winner.R

prob_winnerR 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)


bandit documentation built on June 29, 2022, 5:05 p.m.