Calculates the necessary parameters for the beta distribution to give the desired mode and certainty, k

find_beta_prior_mode(mode1, k)

Arguments

mode1

the desired mode

k

the desired certainty in the prior, must be at least 2. The higher this number, the "stronger" the prior

Value

a list with alpha and beta parameters for the Beta distribution

See also

Examples

find_beta_prior_mode(0.15, 10)
#> $alpha #> [1] 2.2 #> #> $beta #> [1] 7.8 #>