stoner_calculate_dalys | R Documentation |
One modelling group does not provide DALYs, and we need to calculate those, both for their central estimates (already uploaded to Montagu), and their stochastic estimates (provided as CSV files). The DALYs calculation is a simple function of the life expectancy of people (of a given age and country in a given year), and various weighted contributions of different burden outcomes.
stoner_calculate_dalys(
con,
touchstone,
data,
dalys_params,
life_table = NULL,
year_min = 2000,
year_max = 2100
)
con |
DBI connection to a Montagu database. Used for retrieving demographic data for life expectancy. |
touchstone |
The touchstone (including version); the demographic data retrieved will be specific to this touchstone. |
data |
A data.frame containing burden estimates - either central or
stochastic. The columns for both kinds will include |
dalys_params |
A data.frame containing how to calculate dalys; each
row represents a condition, and the four columns describe how to calculate
the cost of that condition across the population in that year. For each
condition, the |
life_table |
If |
year_min |
The first year of the range in which to calculate DALYs. (Default 2000) |
year_max |
The final year of the range in which to calculate DALYs. (Default 2100) |
A list with two named components; life_table
is the result of
calling the life-table function, which can then be specified in subsequent
calls to stoner_calculate_dalys
, and data
is a version of the original
dataset, now with a dalys
column. Note that if data
already contained
a dalys
column when provided to the function, that column will
be overwritten with the new results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.