Calculate global/regional billions contributions
Source:R/calculate_contribution_sums.R
calculate_contribution_sums.Rd
Calculates global or regional sums for billions contributions for the UHC, HPOP, and HEP billions.
Arguments
- df
A data frame
- billion
One of uhc, hpop, and hep. The billion for which we want to find global sums.
- sum_years
The year(s) for which we want to sum the billions contributions.
- sum_type
Allows you to select between global and regional sums.
- source
The source for the calculated billions.
WHO DDI calculations
, withmonth, year
timestamp by default.- scenario_col
Column name of column with scenario identifiers. Useful for calculating contributions on data in long format rather than wide format.
- contribution_col
Column name of column(s) to store contribution (population) values.