Calculate Equilibrium for Lifecycle Model (Logistic or Lotka-Volterra)
Source:R/equilibrium-lifecycle.R
equilibrium_lifeycle.Rd
This function calculates deterministic equilibria for the mosquito lifecycle model.
Usage
equilibrium_lifeycle(
params,
NF,
phi = 0.5,
log_dd = TRUE,
spn_P,
pop_ratio_Aq = NULL,
pop_ratio_F = NULL,
pop_ratio_M = NULL,
cube
)
Arguments
- params
a named list of parameters (see details)
- NF
vector of female mosquitoes at equilibrium, for every population in the environment
- phi
sex ratio of mosquitoes at emergence
- log_dd
Boolean: TRUE implies logistic density dependence, FALSE implies Lotka-Volterra model
- spn_P
the set of places (P) (see details)
- pop_ratio_Aq
May be empty; if not, a named vector or matrix. (see details)
- pop_ratio_F
May be empty; if not, a named vector or matrix. (see details)
- pop_ratio_M
May be empty; if not, a named vector or matrix. (see details)
- cube
an inheritance cube from the
MGDrivE
package (e.g.cubeMendelian
)
Value
a list with 3 elements: init
a matrix of equilibrium values for every life-cycle stage,
params
a list of parameters for the simulation, M0
a vector of initial conditions
Details
Equilibrium can be calculated using one of two models: classic logistic dynamics
or following the Lotka-Volterra competition model. This is determined by the
parameter log_dd
, and it changes elements of the return list: K
is
returned for logistic dynamics, or gamma
is returned for Lotka-Volterra
dynamics.
The places (spn_P
) object is generated from one of the following:
spn_P_lifecycle_node
, spn_P_lifecycle_network
,
spn_P_epiSIS_node
, spn_P_epiSIS_network
,
spn_P_epiSEIR_node
, or spn_P_epiSEIR_network
.
The initial population genotype ratios are set by supplying the pop_ratio_Aq
,
pop_ratio_F
, and pop_ratio_M
values. The default value is NULL,
and the function will use the wild-type alleles provided in the cube
object. However, one can supply
several different objects to set the initial genotype ratios. All genotypes provided
must exist in the cube
(this is checked by the function). If a single, named vector
is provided, then all patches will be initialized with the same ratios. If a
matrix is provided, with the number of columns (and column names) giving the
initial genotypes, and a row for each patch, each patch can be set to a different
initial ratio. The three parameters do not need to match each other.
The params
argument supplies all of the ecological parameters necessary
to calculate equilibrium values. This is used to set the initial population
distribution and during the simulation to maintain equilibrium. params
must include the following named parameters:
qE
: inverse of mean duration of egg stagenE
: shape parameter of Erlang-distributed egg stageqL
: inverse of mean duration of larval stagenL
: shape parameter of Erlang-distributed larval stageqP
: inverse of mean duration of pupal stagenP
: shape parameter of Erlang-distributed pupal stagemuE
: egg mortalitymuL
: density-independent larvae mortalitymuP
: pupae mortalitymuF
: adult female mortalitymuM
: adult male mortalitybeta
: egg-laying rate, dailynu
: mating rate of unmated females
The return list contains all of the params
parameters, along with the
density-dependent parameter, either K
or gamma
. These are the
parameters necessary later in the simulations. This was done for compatibility
with equilibrium_SEI_SIS
, which requires several extra parameters
not required further in the simulations.
For equilibrium with epidemiological parameters, see equilibrium_SEI_SIS
.
For equilibrium with latent humans (SEIR dynamics), see equilibrium_SEI_SEIR
.