Make an xds
model object:
Define the dynamical components:
X Component modules for human / host infection dynamics of class
Xname
with trivial demographicsMYZ Component modules for adult mosquito ecology and infection dynamics of class
MYZname
L Component modules for aquatic mosquito ecology of class
Lname
Define basic structural parameters for a single host and vector population:
\(n_p\) or
nPatches
- the number of patches\(n_q\) or
nHabitats = length(membership)
- the number and locations of aquatic habitats\(n_h\) or
nStrata = length(residence)
- the number of human / host population strata and basic demographic information
Configure some of the basic elements
Search weights for human population strata
Search weights for aquatic habitats
The mosquito dispersal matrix, \(\cal K\)
The time spent matrix \(\Theta\)
Configure runtime parameters for discrete-time systems
Advanced options can be configured after basic setup.
Usage
xds_setup(
xds = "ode",
Xname = "SIS",
Xopts = list(),
MYZname = "macdonald",
MYZopts = list(),
Lname = "trivial",
Lopts = list(),
nPatches = 1,
HPop = 1000,
residence = 1,
membership = 1,
searchB = 1,
TimeSpent = list(),
calK = list(),
searchQ = 1,
Xday = 1,
MYZday = 1,
Lday = 1,
BFopts = list(),
model_name = "unnamed"
)
Arguments
- xds
is
ode
ordde
ordts
for ordinary OR delay differential OR difference equations- Xname
a character string defining a X Component module
- Xopts
a list to configure the X Component module
- MYZname
a character string defining a MYZ Component module
- MYZopts
a list to configure the MYZ Component module
- Lname
a character string defining a L Component module
- Lopts
a list to configure the L Component module
- nPatches
is the number of patches
- HPop
is the number of humans in each patch
- residence
is a vector that describes the patch where each human stratum lives
- membership
is a vector that describes the patch where each aquatic habitat is found
- searchB
is a vector of search weights for blood feeding
- TimeSpent
is either a TimeSpent matrix or a string to call a function that sets it up
- calK
is either a calK matrix or a string that defines how to set it up
- searchQ
is a vector of search weights for egg laying
- Xday
is the run-time time step for X Component (in days): integer or 1/integer
- MYZday
is the run-time time step for MYZ Component (in days): integer or 1/integer
- Lday
is the run-time time step for L Component (in days): integer or 1/integer
- BFopts
a list to configure the blood feeding model
- model_name
is a name for the model (arbitrary)
Details
Using the basic structural parameters, a basic template is created by make_xds_template with a properly configured interface for blood feeding and egg laying, and
pars$frame = class(pars$frame) = 'full'
.nPatches
is passed as a parameternHabitats
is configured by passing the habitatmembership
vector, andnHabitats = length(membership)
nStrata
is configured by passing a vector of human population densities and a residence vector, andnStrata = length(residence) = length(HPop)
nHosts=1
(basic setup handles only the first host species)nVectors=1
(basic setup handles only the first vector species)
. 2. Each one of the dynamical components is configured.
pars$Xpar[[1]]
defines a model for human / host infection dynamics of classXname
(the X component). The parameter values passed in a named list,Xopts.
pars$MYZpar[[1]]
defines a model for adult mosquito ecology & infection dynamics of classMYZname
(the MYZ Component). The parameter values are passed in a named list,MYZopts.
pars$Lpar[[1]]
defines a model for aquatic mosquito ecology of classLname
(The L Component). The parameter values are passed in a named list,Lopts.
After configuring the dynamical components, several structural parameters can be configured at the command line:
Habitat search weights can be set
Host population search weights can be set
A mosquito dispersal matrix, \(\cal K\), can be set
A time spent matrix, \(\Theta\), can be set
Runtime parameters for
dts
models can be configured by passing values:Xday
,MYZday
, andLday
Advanced features must be configured later, including:
multiple-host species or multiple-vector species
exogenous forcing by weather, resources, or other factors
vector control, vaccines, or other mass
Note
If the MYZ Component is the trivial
module, consider using xds_setup_aquatic or xds_setup_human or xds_setup_cohort. Models for mosquito
ecology need not include states describing infection status (see xds_setup_mosy).