multisim | R Documentation |
The function multisim
run the model multiple times, save the results in a list of class 'mwss'.
Results are trajectories simulated by SimInf package. Epidemiological and immunity states of each ward are save at each time steps.
When run in shiny, a progress bar is also displayed during simulations.
multisim(model, nSim, ward_names)
model |
SimInf model generated by the function |
nSim |
Number of simulations |
ward_names |
String vector with ward names/id in the same order than the one used in the function |
List of data.table of class 'mwss'. Additional ISO, SA,ScreenP, ScreenH, TestSympP and TestSympH classes are added depending on the prevention, surveillance and control measures implemented in the model.
data("toydata")
list2env(toydata,envir=.GlobalEnv)
gdata <- build_gdata()
model <- mwss(ward_names, pop_size_P, pop_size_H, nVisits, LS, gdata, tSim = 30)
results <- multisim(model, 5, ward_names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.