Skip to content

EpiModel/ConcurrencyTutorial

Repository files navigation

Concurrency Tutorial

An interactive teaching resource on sexual partnership concurrency and how it does (and does not) shape the spread of HIV and other sexually transmitted infections. The tutorial builds intuition through a graded series of exercises, moving from simple conceptual pictures to a full stochastic network simulation, so that readers can see for themselves why concurrency matters at the population level even when it changes nothing about an individual's own risk of acquiring an infection.

It is part of the EpiModel ecosystem and pairs with the interactive concurrency.sim app, which lets you explore the same simulation model without writing any code.

Available at: https://epimodel.github.io/ConcurrencyTutorial

What the tutorial covers

The site opens with a short conceptual overview of what concurrency is (and is not) and how it drives transmission, followed by four exercises:

  1. Concurrency at the local level, conceptually. Two people, sequential Sam and concurrent Chris, are given the same partners, the same sex acts, and the same timing. The exercise draws out why concurrency raises the risk to a person's partners rather than to the person practicing it.
  2. Concurrency at the population level, conceptually. A small population under sequential versus concurrent partnering shows how many more people an infection can reach when partnerships overlap.
  3. Concurrency at the local level, numerically. The same Sam and Chris comparison is worked out with explicit per-act transmission probabilities, making the backwards-transmission and reduced-forward-transmission effects concrete.
  4. Concurrency at the population level, numerically. A full dynamic network microsimulation of an HIV epidemic that you can run and modify, turning concurrency on and off separately for women and men.

Two short appendices provide the background some readers will want: a refresher on the rules of probability, and a brief introduction to R.

Repository layout

  • index.qmd is the overview and landing page. Each exercise (ex1-* through ex4-*), the summary, and the background tutorials (probability, R, resources) are their own *.qmd page, tied together by the sidebar and page navigation defined in _quarto.yml.
  • ConcurrencyTutorialFiles/ holds the figures used throughout.
  • _quarto.yml, custom.scss, and styles.css carry the EpiModel styling (the cosmo theme with teal accents, a steel-blue navbar and footer, and the Open Sans and Atkinson Hyperlegible fonts) along with the site navigation.
  • .github/workflows/publish.yml renders the site and publishes it to the gh-pages branch on every push to main.

Building locally

The tutorial contains no executed code, so only Quarto is required; there are no R packages to install:

quarto render

Open _site/index.html to preview the result. To edit the content, change index.qmd. To change the look, edit custom.scss (colors and fonts) or _quarto.yml (navigation, table of contents, and format options). Pushing to main rebuilds and republishes the public site automatically.

Authors

  • Steven M. Goodreau, University of Washington
  • Samuel M. Jenness, Emory University
  • Martina Morris, University of Washington

See the full EpiModel team at epimodel.org/team.

License

All material is covered by a GPL-3.0 license, consistent with the EpiModel ecosystem.

About

Exercises to illustrate how relational concurrency does (and does not) affect epidemic dynamics

Resources

License

Stars

0 stars

Watchers

7 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors