Given a desired annual mean attack rate and the number of epochs to consider per year, gives the shape1 and shape2 parameters with the desired mean but maximum variance.
find_beta_prior_with_mean(desired_annual_mean, buckets)
Arguments
- desired_annual_mean
the desired annual mean attack rate
- buckets
the number of time intervals to split each year into
Value
a list with `shape1` and `shape2`
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_mode(),
find_beta_prior_with_mean_var(),
fit_beta_prior(),
fit_normal_prior(),
inf_mat_prior(),
infection_history_prior(),
prob_shifts()
Examples
find_beta_prior_with_mean(0.15, 1)
#> Maximum variance: 0.127499
#>
#> $shape1
#> [1] 1.17648e-06
#>
#> $shape2
#> [1] 6.666719e-06
#>