diff --git a/DESCRIPTION b/DESCRIPTION index db0252c..318eba7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: vimpact Title: Vaccine Impact Calculation -Version: 0.1.4 +Version: 0.1.5 Authors@R: c(person(given = "Xiang", family = "Li", diff --git a/NEWS.md b/NEWS.md index 1865aca..effe797 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# vimpact 0.1.5 + +* resolve a previous update that matches burden outcome to burden outcome code which did not capture the special case of rubella outcomes. + # vimpact 0.1.4 * Produce age specific calendar impact. diff --git a/R/impact_central.R b/R/impact_central.R index 60cf8f3..c1a6121 100644 --- a/R/impact_central.R +++ b/R/impact_central.R @@ -4,6 +4,8 @@ get_raw_impact_details <- function(con, meta1, burden_outcome, is_under5 = FALSE stopifnot(burden_outcome %in% c("deaths", "cases", "dalys", "yll", "deaths_cwyx", "cases_cwyx", "dalys_cwyx", "yll_cwyx")) # _cwyx outcomes are MenA specific. stopifnot(is_under5 %in% c(TRUE, FALSE)) + meta1$burden_outcome <- gsub("rubella_deaths_congenital", "deaths", meta1$burden_outcome) + meta1$burden_outcome <- gsub("rubella_cases_congenital", "cases", meta1$burden_outcome) # determine whether a recipe is for routine or campaign vaccine delivery # routine or campaign matters for method2a in terms of the shape of burden estimates to extract diff --git a/vignettes/internal-impact.Rmd b/vignettes/internal-impact.Rmd index 2407817..f38abfd 100644 --- a/vignettes/internal-impact.Rmd +++ b/vignettes/internal-impact.Rmd @@ -15,6 +15,28 @@ vignette: > This vignette describes how to use vimpact to calculate impact as a member of VIMC. This requires a connection to the montagu database so can only be used internally. Note that this is all in development and the interface is likely to change. +N.B. For VIMC Rubella models, disease burden is measured in terms of CRS cases affecting newborns, linked to their pregnant mothers. This is different from many other diseases (e.g., HepB, measles or YF in this vignette), where the burden is directly attributed to the infected individual. Consequently, when you see vimpact outputs for Rubella, please refer to the following interpretations. + +a.) Age-specific calendar impact + +Definition: The disease burden averted for newborns in a given calendar year, attributed to mothers in specific age groups during that year. +Interpretation: How many CRS related burden are prevented among newborns, broken down by the age of the mother in the year of pregnancy. + +b.) Calendar impact + +Definition: The total disease burden averted for newborns in a given calendar year (regardless of the mother's age). +Interpretation: How many CRS related burden are prevented among newborns overall in that year. + +c.) Cohort impact + +Definition: The disease burden averted for newborns whose mothers were born in a specific birth year. +Interpretation: How many CRS related burden are prevented among newborns, categorized by the mother’s year of birth. + +d.) Impact by year of vaccination + +Definition: The disease burden averted that is linked to immunization programs carried out in a particular year. +Interpretation: How many CRS related burden are prevented among newborns, attributed to vaccinations given in that specific year. + ## Impact by calendar year & impact by birth year ### Function interface diff --git a/vignettes/using-vimpact.Rmd b/vignettes/using-vimpact.Rmd index d3d40a1..3fdd718 100644 --- a/vignettes/using-vimpact.Rmd +++ b/vignettes/using-vimpact.Rmd @@ -18,6 +18,28 @@ knitr::opts_chunk$set( This vignette describes how to use impact calculation methods used in VIMC as an external user. +N.B. For VIMC Rubella models, disease burden is measured in terms of CRS cases affecting newborns, linked to their pregnant mothers. This is different from many other diseases (e.g., HepB, measles or YF in this vignette), where the burden is directly attributed to the infected individual. Consequently, when you see vimpact outputs for Rubella, please refer to the following interpretations. + +a.) Age-specific calendar impact + +Definition: The disease burden averted for newborns in a given calendar year, attributed to mothers in specific age groups during that year. +Interpretation: How many CRS related burden are prevented among newborns, broken down by the age of the mother in the year of pregnancy. + +b.) Calendar impact + +Definition: The total disease burden averted for newborns in a given calendar year (regardless of the mother's age). +Interpretation: How many CRS related burden are prevented among newborns overall in that year. + +c.) Cohort impact + +Definition: The disease burden averted for newborns whose mothers were born in a specific birth year. +Interpretation: How many CRS related burden are prevented among newborns, categorized by the mother’s year of birth. + +d.) Impact by year of vaccination + +Definition: The disease burden averted that is linked to immunization programs carried out in a particular year. +Interpretation: How many CRS related burden are prevented among newborns, attributed to vaccinations given in that specific year. + ## Data The simplest possible example is a static model with constant routine immunisation and a one-off campaign. Burden estimates from a theoretical country are found in 3 csv titled `example_novax_burden.csv`, `example_routine_burden.csv` and `example_routine_campaign_burden.csv`. These include estimates of burden in years 1900 - 2100 and display the format used by the functions.