directAA: directAA

View source: R/directAA.R

directAAR Documentation

directAA

Description

Calculates age-adjusted mortality rate using the direct method

Usage

directAA(deaths, population, refPopulation, perPopulation, decimal)

Arguments

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)

Value

DAR: character string including age-adjusted mortality rate, method of adjustment (direct), and per population

AS: numeric vector of age-specific mortality rates


nicktedesco/epiTools documentation built on May 4, 2022, 2:56 a.m.