Beta binomial random generation

rbb(n, N, u, v)

Arguments

n

number of draws

N

the number of trials

u

equivalent to alpha in description

v

equivalent to beta in description

Value

the beta binomial random draw function

See also

Other beta_binomial_functions: bb_mean(), dbb(), find_bb_2(), find_prior_alpha_beta(), hist_rbb(), pbb(), qbb()

Examples

rbb(100,50,1,1)
#> [1] 42 28 7 42 8 45 5 46 7 10 46 43 23 11 39 10 27 41 38 21 9 43 44 48 34 #> [26] 13 12 25 13 37 11 19 20 42 46 15 43 28 20 33 29 12 35 43 18 6 44 12 12 12 #> [51] 32 39 34 21 15 0 50 18 26 37 30 21 37 8 30 49 48 50 38 28 8 1 0 42 21 #> [76] 37 37 41 10 32 46 37 49 19 15 24 5 37 14 26 37 37 36 26 9 21 1 25 50 34