library(ramp.xds)
library(ramp.library)
library(ramp.work) Loading required package: ramp.control
Loading required package: MASS
Loading required package: ramp.control
Loading required package: MASS
We start with the same data set we used in History of Exposure, but now we consider how malaria has been affected by two rounds of IRS (in green).

Each round of IRS has an effect associated with it that is expected to wane over time. We use information to estimate the temporal dimensions of the effect:
Each model asks us to make some assumptions about the parameters affecting malaria infection and immunity, including drug taking. The SIP model is explained in the documentation:
We need to make some kind of assumption about the form for seasonal exposure to the EIR. We’ll adjust the phase in a bit, but for now, we’re going to specify the shape. This is explained in the documentation for make_function.sin in ramp.xds (offsite).
To estimate the effect size, we must need a model with mosquito ecology and infection dynamics and a model for the IRS coverage and effect sizes.
xde_scaling_Lambda to get the mean Lambda