Skip to content

Commit 0e2ccaf

Browse files
Add scenario colm to burden example
1 parent cc69283 commit 0e2ccaf

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

data-raw/eg_burden_template.R

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
## code to prepare `eg_burden_template` dataset goes here
22

3-
library(readr)
3+
eg_burden_template <- readr::read_csv(
4+
"inst/extdata/central-burden-template.csv"
5+
)
46

5-
eg_burden_template <- read_csv("inst/extdata/central-burden-template.csv")
7+
# assign dummy cohort size value from random draw
8+
# 10e6 is the value in `eg_wpp`, allow negative differences
9+
eg_burden_template$cohort_size <- withr::with_seed(
10+
1,
11+
rnorm(nrow(eg_burden_template), 10e6, 1e4)
12+
)
13+
14+
eg_burden_template <- tidyr::crossing(
15+
eg_burden_template,
16+
scenario = c("disease_rout", "No vaccination")
17+
)
618

719
usethis::use_data(eg_burden_template, overwrite = TRUE)

data/eg_burden_template.rda

93.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)