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

View source: R/makeQxDataFrame.R

makeQxDataFrameR Documentation

Converts one or multiple mortality table objects to a data frame that can be plotted by plotMortalityTables or plotMortalityTableComparisons

Description

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

Usage

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

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


MortalityTables documentation built on Nov. 2, 2023, 5:52 p.m.