Attach event listeners for natural immunity events

attach_event_listeners_natural_immunity(
  variables,
  events,
  parameters,
  dt,
  additive = FALSE
)

Arguments

variables

a named list of variables

events

a named list of events

parameters

the parameters

dt

size of time step

additive

if FALSE the antibody titre is overwritten upon recovery from infection according to parameters$mu_ab_infection, if TRUE the antibody titre is sampled and added to existing titre. Please choose this option with caution, as it changes the interpretation of the parameter value parameters$mu_ab_infection.