makeQxDataFrame: Converts one or multiple mortality table objects to a data...

Description Usage Arguments Examples

View source: R/makeQxDataFrame.R

Description

It is not required to call this function manually, plotMortalityTables will automatically do it if object derived from class mortalityTable are passed.

Usage

1
makeQxDataFrame(..., YOB = 1972, Period = NA, reference = NULL)

Arguments

...

Life tables (objects of classes derived from mortalityTable)

YOB

desired year of birth to be plotted as cohort life table (default: 1972)

Period

desired observation year to be plotted (default: NA). If both YOB and Period are given, a period comparison is generated.

reference

Reference life table, used to show relative death probabilities (i.e. the q_x for all ages are divided by the corresponding probabilities of the reference table)

Examples

1
2
mortalityTables.load("Austria_Annuities")
makeQxDataFrame(AVOe2005R.male, AVOe2005R.female, YOB = 1975)

kainhofer/r-mortality-tables documentation built on Dec. 17, 2020, 3:53 a.m.