directAA | R Documentation |
Calculates age-adjusted mortality rate using the direct method
directAA(deaths, population, refPopulation, perPopulation, decimal)
deaths |
Vector of death counts for each age category |
population |
Vector of population counts for each age category |
refPopulation |
Vector of standard population counts for each age category |
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) |
DAR: character string including age-adjusted mortality rate, method of adjustment (direct), 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.