Description Usage Arguments Value Examples
Calculate the change in life expectancy associated with a reduction in risk of death
1 2 |
demog_data |
A data frame with columns of headed "age" (the age at which each age group begins), "population" (the size of the population) and "deaths" (the number of deaths in the population). |
min_age_at_risk |
Numeric vector. The lowest age susceptible to air pollution. |
pm_concentration |
A number. The population weighted-mean PM2.5 concentration of interest. |
RR |
A number. Specifies the relative risk from an epidemiologiccal study. |
unit |
A number. Speficies the unit change associated with the relative risk (RR). |
neonatal_deaths |
Logical. Are neonatal deaths included? |
start_age |
A numeric vector. The starting age of each age group |
A list of 3 elements:
The difference (between the baseline and impacted population) in:
Age-specific life expectancy (days)
Age-specific life-years lived per 100,000
Age-specific number of deaths per 100,000
The baseline life table
The impacted life table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Estimate the loss of life expectancy assoicated with 1mcg/m3
# of PM2.5 using an abridged set of population and mortality data:
population <- subset(abridged_data,
time == 2011 & sex == "Persons" & measure == "Population",
select = c(age, value))
population <- population$value
deaths <- subset(abridged_data,
time == 2011 & sex == "Persons" & measure == "Deaths",
select = c(age, value))
start_age <- as.numeric(gsub(" .+", "", deaths$age))
deaths <- deaths$value
demog_data <- data.frame(age = start_age, population, deaths)
x <- burden_le(demog_data)
x[[1]][1, 2] # Change in LE at birth (days)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.