R implementation of the infection history prior assuming common infection risk across individuals in a given year.
inf_mat_prior(
infection_history,
age_mask,
infection_model_prior_shape1,
infection_model_prior_shape2
)the infection history matrix
the age mask, giving the first index of the infection_history matrix that each individual can be exposed to. One entry per individual
shape1 parameter for the Beta distribution
shape2 parameter for the Beta distribution
the total log prior for the infection history
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(),
find_beta_prior_with_mean_var(),
fit_beta_prior(),
fit_normal_prior(),
infection_history_prior(),
prob_shifts()