The point of this repo is to have a place to test out ABM in R.
The journey begins with the article and code written by Sherry Towers which can be found Here. All of the original scripts written by Sherry Towers can be found at that link, for the most part this repo will contain those scripts with my modifications and changes.
I have adapted the original script to the reproduction and recovery rates of COVID-19 and added the Exposed state to the agent based model parameters.
Variables to modify and play with begin on line 51 of the sir_agent.R script.
To run the SEIR (Susceptible, Exposed, Infected, Recovered) agent based model run the command:
source("scripts/sir_agent.R")
- Get the Sherry Towers script to run locally
- Change the inputs/equations of the script to explore outputs
- Change inputs to match COVID-19 reproduction and recovery rates
- Add Exposed class to the script to make it an SEIR model (Susceptible, Exposed, Infected, Recovered)
- Modify the agent_grid.R script to include Exposed state
- Long term, add Asymptomatic and Quarantined classes (SEIR + AQ Model)