mortalityComparisonTable {MortalityTables}R Documentation

Calculate relative mortalities for age bands and birth years

Description

Calculate relative mortalities for age bands and birth years

Usage

mortalityComparisonTable(table1, table2, years, ages, binsize = 5, ...)

Arguments

table1, table2

The mortalityTable objects to compare (mortalities of table1 relative to table2)

years

Vector of birth years to include in the comparisons.

ages

Vector of ages to include in the comparisons

binsize

How many ages to combine into one age band

...

Other parameters (currently unused)

Examples

mortalityTables.load("Austria_Annuities")
# Compare mortality of Austrian male and female annuitants born 1930 to 2030
mortalityComparisonTable(
    AVOe2005R.male, AVOe2005R.female,
    years = seq(1930, 2030, by = 10),
    ages = 0:119)

# Compare the two Austrian male annuity tables AVOe 2005-R and AVOe 1996-R,
# combining ages 10-19, 20-29, etc.
mortalityComparisonTable(
    AVOe2005R.male, AVOe1996R.male,
    years = seq(1930, 2030, by = 10),
    ages = 0:109, binsize=10)



[Package MortalityTables version 2.0.5 Index]