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
See also
Other priors:
calc_phi_probs(),
calc_phi_probs_indiv(),
calc_phi_probs_spline(),
create_prob_shifts(),
dbb_prior(),
density_beta_binom(),
find_beta_prior_with_mean(),
find_beta_prior_with_mean_var(),
fit_beta_prior(),
fit_normal_prior(),
inf_mat_prior(),
infection_history_prior(),
prob_shifts()
Examples
find_beta_prior_mode(0.15, 10)
#> $shape1
#> [1] 2.2
#>
#> $shape2
#> [1] 7.8
#>