This is a test project to get used to using Git and GitHub.
The purpose of this project is to create a frequency dependent SEIR model in R. An SEIR model is a model that describes the spread of a disease in a population, placing individuals in compartments based on their infection status. The compartments are susceptible (S), exposed (E), infected (I), and recovered (R). The model is described by the following equations:
Here,
.
├── data/
├── figs/
├── funs/
├── out/
└── src/
data/
contains raw data.figs/
contains figures generated by the code.funs/
contains user-defined helper functions.out/
contains intermediate data and output files.src/
contains scripts for analysis.
- R version 4.2.1 (2022-06-23)
{renv}
for package management{deSolve}
for solving differential equations
I've used the {renv}
package to manage the R environment for this project.
For more details on how to use {renv}
, see this article, but in brief, it creates a snapshot of the installed packages and their versions.
To get started, you will need to install {renv}
as usual (i.e., install.packages("renv")
), and then run renv::restore()
to install the packages that are used in this project (the record in the renv.lock file).
To run the SIR model, you can open the src/sir_model.R file and run the code as usual.
This project is licensed under the MIT License - see the LICENSE file for details
You can contact me via my email: "arnold dot crk at gmail dot com".