A modified version of xds_setup to setup up studies of cohort dynamics.
The xds
object defines frame = class(frame) = 'cohort'
but there
is no cohort
case for xds_solve. Instead, cohort
dynamics are studied using xds_solve_cohort, which was designed
to compare the outcomes for cohorts of different ages when exposure is
changing.
The interface includes options to configure a function
describing F_eir
as a function of time, with seasonal components
and a trend. Exposure in a cohort is a function of its age, including
a function that modifies exposure by age.
xds_setup_cohort(
eir = 1,
F_season = F_flat,
F_trend = F_flat,
F_age = F_flat,
xds = "ode",
Xname = "SIS",
Xopts = list(),
Xday = 1,
HPop = 1000,
searchB = 1,
model_name = "unnamed"
)
is the entomological inoculation rate
a function describing a seasonal pattern over time
a function describing a temporal trend over time
a assigning a biting weight by age
is ode
or dde
or dts
for ordinary OR delay differential OR difference equations
is a character string specifying an X Component module
a list to configure the X Component module
is the run-time time step for X Component (in days): integer or 1/integer
is the number of humans in each stratum
is a vector of search weights for blood feeding
is a name for the model (arbitrary)
an xds
object
xds_setup and xds_setup_human and xds_solve_cohort