sidarthe: Euler scheme for the SIDARTHE model

Description Usage Arguments Details Value References

View source: R/sidarthe.R

Description

A basic Euler scheme is used to numerically solve the ODE system of the novel SIDARTHE model.

Usage

1
2
3
4
5
6
7
8
sidarthe(
  parameters,
  initial_conditions,
  t0 = 0,
  tn = 1,
  n = 1000,
  verbose = TRUE
)

Arguments

parameters

named list of parameters see details

initial_conditions

named list of initial conditions, see details

t0

initial time point

tn

the terminal time point

n

number of sub-intervals in time-grid

verbose

whether to plot the populations over time and print parameter+reproductive ratio

Details

The parameters must be a named list containing values

These descriptions of the model parameters are directly taken from the 2020-03-21 paper "A SIDARTHE model of COVID-19 Epidemic in Italy" by the COVID19 IRCCS San Matteo Pavia Task Force et al. to mitigate any misinterpretation of the input into the model.

(Note the named list must actually have the greek letter names written out, i.e. alpha, beta,...)

Finally the list initial_conditions must contain the following, all as fractions of the total population

It is best to specify all but s0 and then set the initial susceptible fraction to 1 less the sum of the rest.

Value

list consisting of (1) parameters, a data.frame containing the contact rates, etc and (2) sidarthe, a matrix whose columns consist of the eight (fractions of) populations over time:

and finally (3) the basic reproductive ratio as defined for this extended SIR model as a consequence of Proposition 2 in the original paper.

References

The Euler scheme implemented by this function is for the model developed in the following paper. It is 8 coupled non-linear ODEs describing dynamics of sub-populations under a pandemic. The descriptions within the novel paper were used to document the initial conditions and parameters of this model in this package.


shill1729/odeSolveR documentation built on March 31, 2021, 10:52 a.m.