Plots a histogram of the beta binomial function with given mean and variance

hist_rbb(n, mean, var)

Arguments

n

the number of trials

mean

desired mean

var

desired variance

See also

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

Examples

hist_rbb(100, 0.15, 0.1)
#> Warning: NAs produced
#> Warning: NAs produced