makeQxDataFrame {MortalityTables} | R 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 |
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
|
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)
[Package MortalityTables version 2.0.5 Index]