indirectAA | R Documentation |
Calculates age-adjusted mortality rate using the indirect method
indirectAA( deaths, population, refDeathRates, refMortality, perPopulation, decimal )
deaths |
Vector of death counts for each age category |
population |
Vector of population counts for each age category |
refDeathRates |
Vector of standard population death rates for each age category |
refMortality |
Single integer describing overall mortality in reference population |
perPopulation |
Optional input for "per population" that applies to rate (default: per 1000 members of population) |
decimal |
Optional input for rounding rate to certain decimal (default: two decimals) |
IAR: character string including age-adjusted mortality rate, method of adjustment (indirect), and per population
AS: numeric vector of age-specific mortality rates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.