run | R Documentation |
Solves ODEs of a model class within comomodels package and returns solutions at the time points specified using a specified integration method. Numerical solution of the ODEs is carried out by the deSolve package.
run(object, times = seq(0, 100, by = 1), solve_method = "lsoda", ...)
object |
an object of a class within the comomodels |
times |
(double) a vector of time points at which the solution to the system of ODEs should be returned. Default time series is seq(0, 100, by = 1) |
solve_method |
(string) a string specifying the chosen numerical integration method for solving the ode system. Default is "lsoda" which is also the default for the ode function in the deSolve package used in this function |
... |
other parameters |
a named list of two dataframes: 'states' which describes the time evolution of compartment proportions; and 'changes' which describes the time evolution of daily quantities like cases and deaths
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.