Draw from Beta-binomial distribution.

rbetabinom(n = 1, k = 10, alpha = 1, beta = 1)

Arguments

n

number of draws.

k

number of binomial trials.

alpha

first shape parameter of beta distribution.

beta

second shape parameter of beta distribution.