R/render.R
attach_tracking_listener_age_incidence.Rd
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)
a list of events
a individual::Render object
an individual::IntegerVariable object
model parameters (get_parameters)
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
)
}