infection_history_prior: Beta binomial infection history prior

View source: R/priors.R

infection_history_priorR Documentation

Beta binomial infection history prior

Description

Calculates the beta binomial infection history prior for each individual, taking into account the number of years they could be infected.

Usage

infection_history_prior(pars, infection_history, age_mask)

Arguments

pars

the named parameter vector with infection_model_prior_shape1 and infection_model_prior_shape2 corresponding to the beta binomial distribution

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

Value

a prior probability for each individual

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(), find_beta_prior_with_mean(), fit_beta_prior(), fit_normal_prior(), inf_mat_prior(), prob_shifts()


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