find_beta_prior_mode: Find Beta distribution parameters with mode

View source: R/priors.R

find_beta_prior_modeR Documentation

Find Beta distribution parameters with mode

Description

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

Usage

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_indiv(), calc_phi_probs_spline(), calc_phi_probs(), create_prob_shifts(), find_beta_prior_with_mean_var(), find_beta_prior_with_mean(), fit_beta_prior(), fit_normal_prior(), inf_mat_prior(), infection_history_prior(), prob_shifts()

Examples

find_beta_prior_mode(0.15, 10)

adamkucharski/serosolver documentation built on April 13, 2024, 10:24 a.m.