R/SIR.R
SIR_vaccination_demographics_ode.Rd
Susceptible-Infected-Recovered Model with Simple Demographics and Vaccination
SIR_vaccination_demographics_ode(t, x, params)
The timestep over which to calculate derivatives
A numeric vector of compartment populations.
A named vector of parameter values.
A vector of derivatives
##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)
#> [[1]]
#> S_u S_u I_u S_v S_v I_v
#> -12.762402 0.984624 2.000000 9.777778 0.000000 0.000000
#>