Skip to content

Simulate pandemics with a population of dots living in a small box.

Notifications You must be signed in to change notification settings

janoleko/PandemicSim

Repository files navigation

{PandemicSim}: Simulate pandemics

With this package you can simulate a pandemic for a population of dots living in a small box. You have a lot of options to change the pandemic. For example you can change the number of individuals or increase the population’s mobility. You can also make the disease more infectious or more deadly and you can change how fast individuals recover. You can even simulate the effect of countermeasures.

Installation

devtools::install_github("janoleko/PandemicSim")

Example

First simulate the pandemic (in this case with default settings, but you could change them)

pandemic = sim_pandemic()

Then plot the result

plot_pandemic(pandemic, t = 100)

plot_pandemic(pandemic, t = 200)

plot_pandemic(pandemic, t = 300)

About

Simulate pandemics with a population of dots living in a small box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages