This is an attempt to reproduce Figure 1 from Imai et al. 2020, using code from Riou and Althaus (code here). I have included a Jupyter notebook (which includes the output), as well as RMarkdown and plain R files, generated using Jupytext.
Details missing from Imai et al. that I had to guess:
- The initial time (I took it to be 2019-12-01).
- The distribution of generation times (I took it to be gamma with standard deviation of 3.8).
- The summary curve is generated using the median of all cases at a given time (similarly with the 95 percentile range). The language in the figure legend is ambiguous, and could mean generating a median trajectory.