Description Usage Arguments Value Examples
Simulate a System Dynamics model
1 2 3 4 5 6 7 | sd_simulate(
ds_inputs,
start_time = NULL,
stop_time = NULL,
timestep = NULL,
integ_method = "euler"
)
|
ds_inputs |
A list of deSolve inputs generated by read_xmile |
start_time |
A number |
stop_time |
A number |
timestep |
A number |
integ_method |
A string. Either "euler" or "rk4" |
a data frame
1 2 3 | path <- system.file("models", "SIR.stmx", package = "readsdr")
ds_inputs <- xmile_to_deSolve(path)
sd_simulate(ds_inputs, 0, 1, 0.25, "rk4")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.