Overview

This page contains material showing how one can use code to call the underlying simulation functions of DSAIRM without having to go through the graphical interface.

There’s also some general discussion of uncertainty and sensitivity analysis and (pseudo)-random numbers for modeling.

Learning Objectives

  • Know how to interact with the DSAIRM simulation functions through code.

Videos and Code

This 2021 video provides and introduction to the Level 2 approach to DSAIRM, i.e. writing small bits of code to call the underlying simulators. A cleaned up version of the code that goes with this recording is available here.

This 2021 video continues to show ways to interact with the underlying simulator functions by writing small bits of code. It illustrates some additional concepts, e.g., writing your own loop to scan across more than one parameter at a time. There is also a somewhat detailed discussion of the uncertainty and sensitivity analysis app and random numbers and reproducibility.

This file contains the code for the first part of the recording, and this file contains the code for the second part (uncertainty and sensitivity analysis.). Note that I added some more to the code after the recording and also did some cleanup. Thus, the code doesn’t look exactly like you see in the recording, but you should still easily match and reproduce things.

This 2022 video provides another introduction to the level 2 approach to DSAIRM, i.e. writing small bits of code to call the underlying simulators. The focus is on the Chronic Virus and IR app. A full html document providing a level 2 walkthrough with all the code to reproduce the tasks is available here.