Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrc-ide/yfburden
https://github.com/mrc-ide/yfburden
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrc-ide/yfburden
- Owner: mrc-ide
- Created: 2018-09-17T13:44:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-15T15:39:23.000Z (about 4 years ago)
- Last Synced: 2024-11-06T02:32:00.382Z (about 2 months ago)
- Language: R
- Size: 55.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output:
github_document:
df_print: "kable"
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```# YFburden
The goal of YFburden is to calculate the number of cases, deaths and DALYs of yellow fever in Africa. It takes estimates of the transmission intensity
and inputs such as vaccination coverage, population size and life expectancy to calculate the number of infections and thus burden.## Installation
You can install YFburden from github with:
```{r gh-installation, eval = FALSE}
# install.packages("drat")
drat:::add("mrc-ide")
install.packages("YFburden")
```## Example
```{r example, eval = FALSE}
#historic_dat = vaccination campaigns before 2000 (pre-GAVI)#GAVI_preventative = GAVI projected vaccination activities FROM MONTAGU
#GAVI_switch = "routine", "no-vaccination", "preventive"
#param_samples = a vector of transmission intensities across the region
#pop_all = population size by year, age and country FROM MONTAGU
#P_severe = probability of a severe yellow fever infection
#P_severeDeath = probability that an individual with severe yellow fever dies
#life_exp_GAVI = life expectancies by year, age and countries FROM MONTAGU
#template = output template FROM MONTAGU
#round = whether to round or not
#run_id = parameter sample number, for stochastic runs only
output_df = run_burden_for_template(historic_dat,
GAVI_preventive,
GAVI_switch,
param_samples,
pop_all,
P_severe,
P_severeDeath,
life_exp_GAVI,
template,
round = TRUE,
run_id = NA)
```Then `output_df` would look something like this:
```{r output, echo = FALSE}
output_df = data.frame(disease = "YF",
year = 2000,
age = 0,
country = "AGO",
country_name = "Angola",
cohort_size = 700752,
deaths = 13,
cases = 27,
dalys = 715)
output_df
```