seirmod | R Documentation |
Gradient-function for the SEIR model
seirmod(t, y, parameters)
t |
Implicit argument for time |
y |
A vector with initial values for the states |
parameters |
A vector with parameter values for the SEIR system |
A list of gradients
require(deSolve) times = seq(0, 10, by=1/120) paras = c(mu = 1/50, N = 1, beta = 1000, sigma = 365/8, gamma = 365/5) start = c(S=0.06, E=0, I=0.001, R = 0.939) out=ode(start, times, seirmod, paras)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.