Warning: package 'knitr' was built under R version 4.3.3
The Random Variables Approach
Let denote the density of parasite cohorts of age in a host cohort of age . We assume infections clear at the constant rate . Since infections in are independent, we can track the dynamics for the AoI of all parasite cohorts with the equation,
with the boundary condition We note that the age of the host birth cohort sets an upper limit for the parasite cohort, so . The solution, which describes density of infections of age in a host cohort of age , is given by the formula:
From these equations, we derive random variables describing the MoI, the AoI, and the AoY, noting that the mean MoI is:
In ramp.falciparum, this is computed with the function meanMoI
moi =meanMoI(aa, foiP3, hhat=5/365)
plot(aa, moi, type ="l", ylab =expression(m[tau](a)), xlab ="a - cohort age (in days)")
The three give the same answers, up to slight differences introduced by the numerical methods: