R implementation of the infection history prior assuming common infection risk across individuals in a given year

inf_mat_prior(infection_history, age_mask, alpha1, beta1)

Arguments

infection_history

the infection history matrix

age_mask

the age mask, giving the first index of the infection_history matrix that each individual can be exposed to. One entry per individual

alpha1

alpha parameter for beta distribution

beta1

beta parameter for beta distribution

Value

a prior probability for each individual

See also