find_beta_prior_with_mean: Find beta parameters with maximum variance

View source: R/priors.R

find_beta_prior_with_meanR Documentation

Find beta parameters with maximum variance

Description

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

Usage

find_beta_prior_with_mean(desired_annual_mean, buckets)

Arguments

desired_annual_mean

the desired ANNUAL mean attack rate

the

number of buckets to split each year into

Value

a list with shape1 and shape2

See Also

Other priors: calc_phi_probs_indiv(), calc_phi_probs_spline(), calc_phi_probs(), create_prob_shifts(), 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)

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