Code for modelling estimated deaths and cases for COVID19.
Перейти к файлу
Ben Goodrich f6e4079adf cut out the inner for loop
this should improve the runtime
2020-04-02 09:48:48 -04:00
data Latest code for Europe report 2020-03-29 15:05:35 +01:00
figures Code transfer for releasing code for Europe covid19 model 2020-03-27 07:05:06 +00:00
results Code transfer for releasing code for Europe covid19 model 2020-03-27 07:05:06 +00:00
stan-models cut out the inner for loop 2020-04-02 09:48:48 -04:00
utils adding for permission from author 2020-03-27 10:12:09 +00:00
.gitignore tweaking changes for plotting to work 2020-03-27 07:29:44 +00:00
LICENSE Update LICENSE 2020-03-27 07:35:41 +00:00
README.md instructions to how to run the code 2020-03-31 15:17:28 +01:00
base.r removing CFR from comments and variable name to IFR. Just to be consistent with report and code. 2020-04-01 11:53:12 +01:00
covid19model.Rproj Code transfer for releasing code for Europe covid19 model 2020-03-27 07:05:06 +00:00
plot-3-panel.r Latest code for Europe report 2020-03-29 15:05:35 +01:00
plot-forecast.r Latest code for Europe report 2020-03-29 15:05:35 +01:00

README.md

covid19model

Code for modelling estimated deaths and cases for COVID19.

This repository has code for replication purposes. The bleeding edge code and advancements are done in a private repository. Ask report authors for any collaborations.

How to run the code

There are two ways to run our code:-

  • Open the rstudio project covid19model.Rproj file in rstudio and run/source base.r file
  • To run from commandline please enter the cloned directory and type 'Rscript base.r base' in terminal
  • The results are stored in two folders results and figures.
  • Results has the stored stan fits and data used for plotting
  • Figures have the images with daily cases, daily death and Rt for all countries.

Please note to not make you wait for long we have by default run sampling for short period. To be comparable with report please uncomment the line 206 and comment out line 207. This will run sampling for 4000 iterations with 2000 warmups and 4 chains.