Tutorials
LASER provides a library of reusable epidemiological components as well as canonical transmission models: SI, SIS, SIR, SIRS, SEIR, SEIRS, spatial networks, and more. This flexible framework is customizable, able to be applied to a wide variety of epidemiological modeling questions. From simple transmission modes to complex spatial dynamics, there are numerous ways to combine and apply LASER modules.
The following code examples and interactive Jupyter notebooks are designed to provide implementation suggestions and to help familiarize users with core LASER functionality. We encourage new users to explore LASER through the notebooks, and challenge them to create new methods for answering similar questions.
The tutorials begin with a simple SIR model, with sample code demonstrating how to configure LASER to implement the SIRModel class. As the tutorial progresses, complexity is added to the model including spatial components and human migration. There is an additional example demonstrating how to use census-based tracking in SIR models.
The notebook section contains a suite of interactive notebooks that progress through transmission modes, starting from SI models with no births and sequentially adding additional dynamics to create SIR models with vital dynamics and migration. In addition to the series of notebooks on transmission dynamics, there are notebooks which explore specific LASER features such as births, mortality, and seasonality. We recommend working through the transmission component notebooks prior to the feature notebooks.
Suggested order:
- SI model with no demographics
- SI model with constant population demographics
- SIS model with no demographics
- Outbreak size in the SIR model
- Average age at infection in the SIR model
- Intrinsic periodicity of the SIR model
- Exploring the critical community size of an SIR model
- The relationship between coupling and incidence correlation in a 2-patch model
- Modeling the spread of rabies in one dimension
- Periodicity of measles in England and Wales
Once you have completed the above notebooks, please explore the following notebooks in any desired order to learn how to implement and integrate custom components:
- England and Wales measles analysis
- SEI and SEIS model implementations
- Explore the vital dynamics births components
- Test constant population components
- Numba compatible distributions
- Grid function examples
- Explore the vital dynamics mortality components
- Explore routine immunization
- Seasonality in transmission