A basic model with several compartments to model vector-borne transmission

simulate_vectortransmission_ode(
  Sh = 1000,
  Ih = 1,
  Rh = 0,
  Sv = 1000,
  Iv = 1,
  b1 = 0.002,
  b2 = 0.002,
  g = 1,
  w = 0.1,
  m = 100,
  n = 0.1,
  tstart = 0,
  tfinal = 100,
  dt = 0.1
)

Arguments

Sh

: starting value for Susceptible hosts : numeric

Ih

: starting value for Infected hosts : numeric

Rh

: starting value for Recovered hosts : numeric

Sv

: starting value for Susceptible Vectors : numeric

Iv

: starting value for Infected Vectors : numeric

b1

: infection rate of hosts : numeric

b2

: infection rate of vectors : numeric

g

: recovery rate of hosts : numeric

w

: wanning immunity rate : numeric

m

: vector birth rate : numeric

n

: vector death rate : numeric

tstart

: Start time of simulation : numeric

tfinal

: Final time of simulation : numeric

dt

: Time step : numeric

Value

The function returns the output as a list. The time-series from the simulation is returned as a dataframe saved as list element ts. The ts dataframe has one column per compartment/variable. The first column is time.

Details

The model tracks the dynamics of susceptible, infected, and recovered hosts, and susceptible and infected vectors. Infection, recovery, and waning immunity processes are implemented for hosts. Births and deaths and infection processes are implemented for vectors. This code is based on a dynamical systems model created by the modelbuilder package. The model is implemented here as a set of ordinary differential equations, using the deSolve package.

Warning

This function does not perform any error checking. So if you try to do something nonsensical (e.g. have negative values for parameters), the code will likely abort with an error message.

Examples

# To run the simulation with default parameters: result <- simulate_vectortransmission_ode()