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)
compile_input(input_args, is_lifetable)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.
List with all input data by argument
Boolean INTERNAL argument specifying if the life table approach is applied (TRUE) or not (FALSE)
Alberto Castro & Axel Luyten