Learn R Programming

healthiar (version 0.2.3)

compile_input: Compile input

Description

This function compiles the input data of the main function and calculates the population attributable fraction based on the input data (all in one data frame)

Usage

compile_input(input_args, is_lifetable)

Value

This function returns a data.frame with all input data together Moreover, the data frame includes columns such as:

  • Attributable fraction

  • Health impact

  • Outcome metric

  • And many more.

Arguments

input_args

List with all input data by argument

is_lifetable

Boolean INTERNAL argument specifying if the life table approach is applied (TRUE) or not (FALSE)

Author

Alberto Castro & Axel Luyten