Nothing
value_remaining <- function(x,
n,
alpha = 1,
beta = 1,
ndraws = 10000
){
post = sim_post(x,n,alpha,beta,ndraws)
postWin = prob_winner(post)
iMax = which.max(postWin)
thetaMax = apply(post,1,max)
#value_remaining:
vR = (thetaMax-post[,iMax])/post[,iMax]
return(vR)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.