This immunity model should only be used if all exposures are vaccination events. The probability of successful exposure (vaccination event) depends on the number of vaccines an individual has received prior to time t. If the individual is under the maximum vaccinations allotted then the probability of successful exposure event is 1.
immunity_model_vacc_only(
i,
t,
x,
immune_histories,
biomarker_states,
demography,
biomarker_map,
model_pars,
max_vacc_events,
vacc_age,
...
)
integer for the individual ID
integer for the time period
integer for the exposure ID
a 3D array of immune histories for all individuals, time steps and exposure IDs
an 3D array of biomarker states (biomarker quantities) for all individuals, time steps and biomarker IDs
a tibble of demographic information for each individual in the simulation
a table specifying the relationship between exposure IDs and biomarker IDs
a tibble of parameters needed for the immunity model
a vector of the maximum number of vaccination events possible for each exposure type; If an exposure type is not a vaccination event then input NA
a vector of the minimum age at which an individual is eligible for vaccination for each exposure event; If an exposure event is not a vaccination event then input NA
Additional arguments
The probability of successful exposure