macpan-workshop

Syllabus

CC BY-NC-SA 4.0

This is a syllabus for a workshop on using macpan2 for applied public health modelling.

Table of Contents

Instructor

Steve Walker – swalk@mcmaster.cagithub.com/stevencarlislewalker

I’m not an epidemiological modeller. I’ve been working on computational statistics for about 20 years. I got my PhD in Ecology in 2010, and I’ve worked in academic, industry, and government settings.

Audience

We assume that workshop participants are epidemiological/disease modellers who use, or want to use, compartmental models to address public health issues. The material is specifically tailored to such modellers at the Public Health Agency of Canada.

Details on how to prepare for the workshop are covered here.

Flow

During the workshop, we will alternate between conceptual discussions and hands-on exercises to explore key techniques. We recognize that participants will have different levels of experience, so some exercises may feel more challenging than others. However, conceptual discussions will not depend on completing prior exercises. Some participants may focus on translating compartmental model diagrams into simulations, while others may want to delve into the details of optimization and ODE solvers. Hands-on sessions will be flexible, allowing participants to pursue their interests, while conceptual discussions will be structured and scheduled.

Schedule

The workshop will take place on March 20, 2025 with the following schedule.

Time Activity
10:00-10:15 Welcome and Introduction
10:15-11:00 Session 1a: Exploration
11:00-11:15 Break
11:15-12:00 Session 1b: Exploration
12:00-1:15 Lunch
1:15-2:00 Session 2: Calibration
2:00-2:15 Break
2:15-3:00 Session 3: Inference
3:00-3:15 Break
3:15-3:30 Session 4: Stratification
3:30-3:45 Feedback
3:45-4:00 Finishing and Packing Up

Background

The macpan2 package is a flexible compartmental modelling tool that has been optimized for fast calibration to data. This package grew out of lessons learned developing the McMasterPandemic COVID-19 model, which was used to support public health during the pandemic.

Applied compartmental modelling is a big topic. The following activities describe the aspects of this topic for which macpan2 is designed.

Example Workflow

Starting with exploration, and then iterating within the following model refinement cycle, can be a good default workflow for applied public health compartmental modelling projects.

graph LR;
    Exploration-->Calibration;
    Calibration-->Inference;
    Inference-->Stratification;
    Stratification-->Exploration;

In this cycle, exploration can clarify if existing parameter values need refinement. In turn, calibration refines a model so that it can be used to make defensible inferences in a specific context. Inferences can raise questions about whether a model should be stratified to make it more realistic. Finally, stratification can create new model behaviours that may require further exploration, starting the cycle over again.

In applied public health modeling, iterative cycles can be completed at different paces, depending on the context and objectives. A rapid approach, focusing on completing each iteration efficiently rather than aiming for a fully refined model upfront, can sometimes help maintain momentum. Limiting the scope of each step, or occasionally omitting less critical steps, may help mitigate delays associated with extensive analysis. Returning to the inference step frequently provides opportunities to refine insights and contribute to ongoing public health discussions.

The stratification step will increase model complexity, which has both advantages and disadvantages. Therefore, complexity will tend to increase as a modelling project iterates through the cycle. Starting with a simple model will help ensure that the project converges on an appropriate level of complexity. Sometimes it is worth resetting the cycle by starting again with a simpler model.

We will use this model refinement cycle to provide context when concepts are introduced in the workshop. The instructor will take a modelling example through one cycle during the workshop. Participants will be given time to try some of these techniques on their own models.

Objectives

The overall goal of the workshop is to introduce epidemiological modellers to the macpan2 software for compartmental modelling to support public health. Each session will cover techniques associated with one of the steps in the model refinement cycle.

There will not be enough time in the workshop to cover all of macpan2, so there will be a companion set of online materials that will cover more of the available options.

Session 1: Exploration

You will learn about the following types of tasks required for exploring model simulations.

Session 2: Calibration

You will learn about the following types of tasks required for parameterizing models, for exploring scenarios and making inferences and predictions about a particular population and public health problem.

Session 3: Inference

You will learn about the following types of tasks that are often necessary when making inferences using calibrated models.

Session 4: Stratification

You will learn about the importance of stratification of simple compartmental models. We will not do anything hands on in this session as there will not be enough time.

Outcomes

After participating in the workshop, modellers will be able to do the following.

Preparation