To use age-stratified incidence tracking, run the lines in examples anytime after all events have been made and initialized but before simulation begins.

attach_tracking_listener_age_incidence(events, renderer, age, parameters)

Arguments

events

a list of events

renderer

a individual::Render object

age

an individual::IntegerVariable object

parameters

model parameters (get_parameters)

Examples

if (FALSE) {
incidence_renderer <- individual::Render$new(timesteps)
attach_tracking_listener_age_incidence(
    events = events, renderer = age_incidence_renderer,
    age = variables$discrete_age, parameters = parameters
 )
}