inf_mat_prior: Infection history prior R

View source: R/priors.R

inf_mat_priorR Documentation

Infection history prior R

Description

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

Usage

inf_mat_prior(
  infection_history,
  age_mask,
  infection_model_prior_shape1,
  infection_model_prior_shape2
)

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

infection_model_prior_shape1

shape1 parameter for the Beta distribution

infection_model_prior_shape2

shape2 parameter for the Beta distribution

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(), infection_history_prior(), prob_shifts()


seroanalytics/serosolver documentation built on Aug. 18, 2024, 12:46 p.m.