This function processes an object to calculate various health outcomes over time.

convert_to_outcomes(object, yrsum = 2)

Arguments

object

An object containing the necessary data for processing.

yrsum

An integer specifying the number of years to summarize. Default is 2.

Value

A list containing the following elements:

outcomes

A data frame with weekly outcomes by age group.

costs

A data frame with discounted costs by outcome and age group.

qaly

A data frame with discounted quality-adjusted life years (QALYs) by outcome and age group.

doses

A vector containing the number of doses administered.

Details

The function performs the following steps:

  1. Extracts necessary data from the input object.

  2. Calculates the proportion of individuals in different states over time.

  3. Estimates the incidence of various health outcomes for vaccinated and unvaccinated groups.

  4. Computes the protected incidence for different health outcomes.

  5. Aggregates the results to provide weekly outcomes, costs, and QALYs by age group.

  6. Applies discounting to costs and QALYs.

Examples

if (FALSE) { # \dontrun{
result <- convert_to_outcomes(my_object, yrsum = 3)
} # }