SI_ode: A Simple Susceptible-Infected Infectious Disease Model

Description Usage Arguments Value Examples

View source: R/SI_ode.R

Description

A Simple Susceptible-Infected Infectious Disease Model

Usage

1
SI_ode(t, x, params)

Arguments

t

The timestep overwhich to calculate derivatives

x

A numeric vector of compartment populations.

params

A named vector of paramter values.

Value

A vector of derivatives

Examples

1
2
3
4
5
6
7
8
9
##Model Input
S_0 <- 999
I_0 <- 1
beta <- 3
dt <- 1
parameters <- c(beta = beta)
inits <- c(S = S_0, I = I_0)

SI_ode(1, inits, parameters)

bristolmathmodellers/biddmodellingcourse documentation built on May 28, 2019, 7:13 p.m.