This depends on the DB format of VIMC and so is for internal use only.

calculate_impact_from_recipe(
  con,
  recipe_path,
  method,
  countries = NULL,
  is_under5 = FALSE,
  vaccination_years = 2000:2030
)

Arguments

con

Connection to database

recipe_path

Path to file containing recipe for burden outcome calculation. For more details see vignette("vignette").

method

Impact method to use one of calendar_year, birth_year, yov_activity_type, yov_birth_cohort.

countries

Vector of countries to get impact for. If NULL then impact calculated for all countries.

is_under5

If TRUE then only include data for age under 5, otherwise calculate impact for all ages

vaccination_years

Years of vaccination of interest, only used for year of vaccination (yov) methods

Value

The impact for each row in the recipe