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 shape1 and shape2 parameters for the Beta distribution

Examples

find_beta_prior_mode(0.15, 10)
#> $shape1
#> [1] 2.2
#> 
#> $shape2
#> [1] 7.8
#>