covid19model/README.md

59 строки
3.0 KiB
Markdown
Исходник Обычный вид История

2020-04-04 23:10:29 +03:00
![](https://github.com/ImperialCollegeLondon/covid19model/workflows/CI/badge.svg)
2020-03-27 01:35:46 +03:00
# covid19model
2020-04-04 20:34:42 +03:00
Code for modelling estimated deaths and cases for COVID19 from Report 13 published by MRC Centre for Global Infectious Disease Analysis, Imperial College London: [Estimating the number of infections and the impact of nonpharmaceutical interventions on COVID-19 in 11 European countries](https://www.imperial.ac.uk/mrc-global-infectious-disease-analysis/covid-19/report-13-europe-npi-impact/)
2020-03-27 10:07:29 +03:00
2020-04-09 20:25:14 +03:00
## Version 2 Release
2020-04-09 21:43:45 +03:00
In this update we extend our original [model](https://www.imperial.ac.uk/mrc-global-infectious-disease-analysis/covid-19/report-13-europe-npi-impact/) to include (a) population saturation effects, (b) prior uncertainty on the infection fatality ratio and (c) a more balanced prior on intervention effects. We also (d) included another 3 countries (Greece, the Netherlands and Portugal). The updated technical detail is available [here](https://github.com/ImperialCollegeLondon/covid19model/blob/master/Technical_description_of_Imperial_COVID_19_Model.pdf).
2020-04-09 20:44:12 +03:00
You can directly look at our results [here](https://imperialcollegelondon.github.io/covid19estimates)
2020-04-09 20:25:14 +03:00
2020-03-29 17:07:26 +03:00
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.
2020-03-31 17:17:28 +03:00
2020-04-05 23:22:02 +03:00
## Contributing
2020-04-05 23:22:26 +03:00
We welcome all potential collaborators and contributors from the wider community. Please see [contributing](contributing.md) for more details.
2020-04-05 23:22:02 +03:00
# Installing dependencies
## Using Conda
An `environment.yml` file is provided and can be used to build a virtual
environment containing all model dependencies. Create the environment using:
```
conda env create -f environment.yml
```
Then activate the environment for use:
```
conda activate covid19model
```
## Using Docker
A [Docker][] image providing all model dependencies is available. See
[docker/README.md](docker/) for details of running the model with Docker.
[Docker]: https://www.docker.com/
## Other
If you wish to install packages into your native R environment or with a system
package manager please see `environment.yml` for a full list of dependencies.
2020-03-31 17:17:28 +03:00
# 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
2020-04-09 20:25:14 +03:00
# Results
2020-03-31 17:17:28 +03:00
* 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.
2020-04-09 20:25:14 +03:00
## Notice
* Please note to not make you wait for long we have by default run sampling for short period. For proper estimates please uncomment the line 202 and comment out line 203. This will run sampling for 4000 iterations with 2000 warmups and 4 chains.
* Python code is right now not updated and won't work. Python code is good for only version 1 model and data.