Skip to content

JohnLevander/SPIR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPIR (Susceptible-Prophylactic-Infected-Recovered) Agent-Based Simulation Model

Software Pre-requisites

  • Python 3.0+
  • Python Libraries: argparse, matplotlib, os.path, sys, time

Download Project from GitHub

Configure

You can configure the simulation for running by changing the values of the parameters in the config.txt file.

Execute

To execute the simulation,

  • Open a terminal
  • Navigate to the SPIR root directory
  • Type: python SPIR/Main.py -v -g configFile config.txt

You should see as a result a graphic with the dynamics of agents in the Susceptible, Prophylactic, Infectious, Recovered state.

Scripts

There are several R Statistics scripts available in the directory scripts. These scripts have different aims:

  • ode-sir-model.R - Traditional SIR ODE model
  • ode-spir-model.R - SPIR model as ODE
  • decision-landscape-analysis.R - 3D visualization of the Susceptible and Prophylactic Expected Utility values in relation to the proportion of infected and time horizon for the decision-making
  • switching-point-analysis.R - Calculus of the precise switching point location and a comparison with a possible linear approximation
  • disease-analysis.R - Analysis of specific diseases

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 73.7%
  • Python 22.5%
  • Jupyter Notebook 3.8%