Nothing
sim_post <- function(x,
n,
alpha = 1,
beta = 1,
ndraws = 5000
) {
k <- length(x)
ans <- matrix(nrow=ndraws, ncol=k)
no = n-x
for (i in (1:k))
ans[,i] = rbeta(ndraws, x[i] + alpha, no[i] + beta)
return(ans)
}
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.