Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrc-ide/covid19_cfr_submission
Repository for all scripts required to replicate the CFR analysis for paper submission.
https://github.com/mrc-ide/covid19_cfr_submission
Last synced: about 2 months ago
JSON representation
Repository for all scripts required to replicate the CFR analysis for paper submission.
- Host: GitHub
- URL: https://github.com/mrc-ide/covid19_cfr_submission
- Owner: mrc-ide
- License: mit
- Created: 2020-03-09T12:32:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T13:18:42.000Z (about 4 years ago)
- Last Synced: 2023-08-01T05:13:37.709Z (over 1 year ago)
- Language: R
- Size: 1.05 MB
- Stars: 69
- Watchers: 17
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COVID19_CFR_submission
Repository for all scripts required to replicate the analysis in the paper ["Estimates of the severity of coronavirus disease 2019: a model-based analysis"](https://doi.org/10.1016/S1473-3099(20)30243-7).All code within this repository is freely available and published under the MIT license (see LICENSE file)
## How to run the code
Code in this repository is written in the [R statistical language](https://www.r-project.org/), and makes use of [RStudio projects](https://rstudio.com/) for convenience along with several additional packages. For those just starting out in R check out the [swirl](https://swirlstats.com/) package, and for more information on how to work with packages check out [this page](https://www.datacamp.com/community/tutorials/r-packages-guide).
We recommend starting by opening "COVID19_CFR_submission.Rproj" within RStudio, this will ensure the working directory is set correctly. The various scripts required to run the analyses are contained in the R_scripts folder. These scripts were written by multiple authors, and so style and implementation differs between scripts, but in general these scripts will install/load any required packages and functions at the top of the script, the body of the script then carries out the main analysis and any output is saved to the "output" folder.
Scripts required to replicate the parametric analysis in Table 2 begin with "run_mcmc_cfr", and can be run in any order. These scripts run MCMC via the [drjacoby package](https://github.com/mrc-ide/drjacoby). They make use of processed data in the "output" folder. If you want to see the raw data prior to this processing step (this is not required for the analysis) check out the "data" folder and the script "process_mcmc_data.R".