Finds the required alpha and beta to give a desired mean and variance of the beta binomal function

find_prior_alpha_beta(n, mean, var)

Arguments

n

the number of trials

mean

desired mean

var

desired variance

Value

alpha and beta for the beta binomial

See also

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

Examples

find_prior_alpha_beta(n=100,mean=25,var=5)
#> a b #> -34 -102