Cohort Dynamics

In some cases, it’s useful to explore the relationship between exposure and malaria epidemiology by comparing different cohorts in the same population. For this, we developed some utilities for cohort dynamics that gete set up by xds_setup_cohort(). Models returned by xds_setup_cohort() lack the MYZ and L components.

The function xds_setup_cohort() differs from other trace functions in ramp.xds in several ways. The function is defined with respect to age (a) for a cohort born on day τ, but average exposure is evaluated at time t=a+τ, so:

FE(a,τ)=E×ω(a)×FS(t=a+τ)×FT(t=a+τ) + E is the mean daily EIR:

Since the return value is a product, the defaults return 1.

If you read Trace Functions, then you already know, in principle, how to configure FS and FT using make_function. Configuration of ω(a) works in the same way. Using xds_setup, these are passed from setup:

If season_par or trend_par or age_par is not an empty list, then the resulting functions get set up by make_function.

?xds_setup_cohort

The function can be configured with a seasonal pattern (over time, t), an inter-annual trend (over time, t), an age weight (over age, a), and a scaling term for the mean. Since a person’s age is a=tτ, where τ is the birth date,