Skip to contents

Draw from a Beta-binomial distribution.

Usage

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.

See also

rbeta() and rbinom() for additional details.

Other distributions: rdirichlet()

Examples

coiaf:::rbetabinom()
#> [1] 1
coiaf:::rbetabinom(n = 10, k = 10)
#>  [1] 5 4 6 4 0 4 3 6 5 2