SIR_vaccination_demographics_ode: Susceptible-Infected-Recovered Model with Simple Demographics...

Description Usage Arguments Value Examples

View source: R/SIR.R

Description

Susceptible-Infected-Recovered Model with Simple Demographics and Vaccination

Usage

1

Arguments

t

The timestep over which to calculate derivatives

x

A numeric vector of compartment populations.

params

A named vector of parameter values.

Value

A vector of derivatives

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##Model Input
S_u_0 <- 989
I_u_0 <- 1
R_u_0 <- 0
S_v_0 <- 0
I_v_0 <- 0
R_v_0 <- 0
beta <- 3
tau <- 2
mu <- 1/81
alpha <- 0.8
lambda <- 0.7

parameters <- c(beta = beta, tau = tau, mu = mu,
                alpha = 0.8, lambda = 0.7)
inits <- c(S_u = S_u_0, I_u = I_u_0, R_u_0 = R_u_0,
           S_v = S_v_0, I_v = I_v_0, R_v_0 = R_v_0)

SIR_vaccination_demographics_ode(1, inits, parameters)

idmodelr documentation built on July 1, 2020, 7:40 p.m.