SIR | R Documentation |
The derivative function of the SIR epidemic model, an example of a two-dimensional autonomous ODE system.
SIR(t, y, parameters)
t |
The value of t, the independent
variable, to evaluate the derivative at. Should be a
|
y |
The values of x and
y, the dependent variables, to evaluate
the derivative at. Should be a |
parameters |
The values of the parameters of the system. Should be a
|
SIR
evaluates the derivative of the following ODE at the point
(t, x, y):
Its format is designed to be compatible with ode
from
the deSolve
package.
Returns a list
containing the values of the two
derivatives at
(t, x, y).
Michael J Grayling
ode
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.