Draw from a Beta-binomial distribution.
Arguments
- n
Number of draws.
- k
Number of binomial trials.
- alpha
First shape parameter of beta distribution.
- beta
Second shape parameter of beta distribution.
See also
rbeta()
and rbinom()
for additional details.
Other distributions:
rdirichlet()