Skip to content

Commit

Permalink
Merge pull request #36 from vimc/vimc-7261
Browse files Browse the repository at this point in the history
vimc-7261: recognise different no-vaccination scenario type
  • Loading branch information
weshinsley authored Dec 13, 2023
2 parents 30d95af + 5e9bf8b commit a2fa6bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ Suggests:
RSQLite,
withr
Remotes: reside-ic/fakerbase
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
VignetteBuilder: knitr
Config/testthat/edition: 3
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vimpact 0.1.1

* Able to recognise different no-vaccination scenario types.

# vimpact 0.1.0

* Increase flexibility - recognize new activity type, compare impact between different scenario types.
Expand Down
2 changes: 1 addition & 1 deletion R/impact_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ get_meta_from_recipe <- function(default_recipe = TRUE, method = "method0", reci

meta_all <- DBI::dbGetQuery(con, sql)
## remove yf reactive sias - otherwise cannot match with recipe
l <- meta_all$scenario_type == "novac"
l <- grepl("novac", meta_all$scenario_type)
j <- meta_all$gavi_support_level == "none"
meta_all$vaccine[l & j] <- "none"
meta_all$activity_type[i & j] <- "none"
Expand Down

0 comments on commit a2fa6bc

Please sign in to comment.