Skip to contents

Calculate all-cause mortality rate by single year of age and sex from a spec object.

Usage

# S3 method for class 'spec'
agemx(mod, nonhiv = FALSE)

Arguments

mod

output of simmod of class spec.

Value

3-dimensional array of mortality by age, sex, and year.

Details

Mortality in year Y is calculated as the number of deaths occurring from the mid-year of year Y-1 to mid-year Y, divided by the population size at the mid-year of year Y-1. !!! NOTE: This might be different from the calculation in Spectrum. Should confirm this with John Stover.