convert_to_outcomes.Rd
This function processes an object to calculate various health outcomes over time.
convert_to_outcomes(object, yrsum = 2)
A list containing the following elements:
A data frame with weekly outcomes by age group.
A data frame with discounted costs by outcome and age group.
A data frame with discounted quality-adjusted life years (QALYs) by outcome and age group.
A vector containing the number of doses administered.
The function performs the following steps:
Extracts necessary data from the input object.
Calculates the proportion of individuals in different states over time.
Estimates the incidence of various health outcomes for vaccinated and unvaccinated groups.
Computes the protected incidence for different health outcomes.
Aggregates the results to provide weekly outcomes, costs, and QALYs by age group.
Applies discounting to costs and QALYs.
if (FALSE) { # \dontrun{
result <- convert_to_outcomes(my_object, yrsum = 3)
} # }