From 8b0a6eddb02c536eb0056f5fccbbe8064a4868f0 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Sat, 26 Aug 2017 17:03:28 +0000 Subject: [PATCH] Add class to handle pension tables (first attempt, not finished yet) --- DESCRIPTION | 5 +- NAMESPACE | 2 + R/pensionTable.R | 69 +++++++++++++++++++ man/MortalityTables-package.Rd | 10 +++ man/ageShift.Rd | 2 +- man/ages.Rd | 8 +-- man/baseTable.Rd | 4 +- man/baseYear.Rd | 4 +- man/deathProbabilities.Rd | 9 +-- man/generateAgeShift.Rd | 1 - man/getOmega.Rd | 6 +- man/makeQxDataFrame.Rd | 1 - man/mortalityComparisonTable.Rd | 1 - man/mortalityTable-class.Rd | 2 +- man/mortalityTable.ageShift-class.Rd | 2 +- ...mortalityTable.improvementFactors-class.Rd | 2 +- man/mortalityTable.joined-class.Rd | 2 +- man/mortalityTable.jointLives-class.Rd | 2 +- man/mortalityTable.mixed-class.Rd | 2 +- man/mortalityTable.observed-class.Rd | 2 +- man/mortalityTable.period-class.Rd | 2 +- man/mortalityTable.trendProjection-class.Rd | 2 +- man/mortalityTables.list.Rd | 1 - man/mortalityTables.load.Rd | 1 - man/pensionTable-class.Rd | 54 +++++++++++++++ man/periodDeathProbabilities.Rd | 9 +-- man/plot.mortalityTable.Rd | 1 - man/plotMortalityTableComparisons.Rd | 1 - man/plotMortalityTables.Rd | 1 - 29 files changed, 169 insertions(+), 39 deletions(-) create mode 100644 R/pensionTable.R create mode 100644 man/pensionTable-class.Rd diff --git a/DESCRIPTION b/DESCRIPTION index 0e61513..643d817 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,8 +22,8 @@ Description: Classes to implement and plot cohort life tables as well as period life table, cohort life tables using an age shift, and merged life tables. License: GPL (>= 2) -RoxygenNote: 5.0.1 -Collate: +RoxygenNote: 6.0.1 +Collate: 'mortalityTable.R' 'mortalityTable.period.R' 'mortalityTable.ageShift.R' @@ -47,6 +47,7 @@ Collate: 'mortalityTable.jointLives.R' 'mortalityTables.list.R' 'mortalityTables.load.R' + 'pensionTable.R' 'plot.mortalityTable.R' 'plotMortalityTableComparisons.R' 'plotMortalityTables.R' diff --git a/NAMESPACE b/NAMESPACE index db08add..395cf4e 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -16,6 +16,7 @@ export(mortalityTable.period) export(mortalityTable.trendProjection) export(mortalityTables.list) export(mortalityTables.load) +export(pensionTable) export(plotMortalityTableComparisons) export(plotMortalityTables) exportClasses(mortalityTable) @@ -27,6 +28,7 @@ exportClasses(mortalityTable.mixed) exportClasses(mortalityTable.observed) exportClasses(mortalityTable.period) exportClasses(mortalityTable.trendProjection) +exportClasses(pensionTable) exportMethods(ageShift) exportMethods(ages) exportMethods(baseTable) diff --git a/R/pensionTable.R b/R/pensionTable.R new file mode 100644 index 0000000..dcfec96 --- /dev/null +++ b/R/pensionTable.R @@ -0,0 +1,69 @@ +#' @include mortalityTable.R +NULL + + +#' Class pensionTable +#' +#' Class \code{pensionTable} is the (virtual) base class for all pensions +#' tables. It contains the name and some general values applying to all +#' types of tables. In particular, it holds individual tables for each of the +#' transition probabilities. Possible states are: +#' * active: healty, no pension, typically paying some kin of premium +#' * incapacity: disablity pension, in most cases permanent, not working, early pension +#' * retirement: old age pension, usually starting with a fixed age +#' * dead +#' * Widow/widower pension +#' +#' Correspondingly, the following transition probabilities can be given: +#' * qxaa: death probability of actives (active -> dead) +#' * ix: invalidity probability (active -> incapacity) +#' * qix: death probability of invalid (invalid -> dead) +#' * rx: reactivation probability (incapacity -> active) +#' * apx: retirement probability (active -> retirement), typically 1 for a fixed age +#' * apx: retirement probability of invalids (invalid -> retirement), typically 0 or 1 for a fixed age +#' * qpx: death probability of retired (retired -> dead) +#' * hx: probability of a widow at moment of death (dead -> widow), y(x) age differene +#' * qxw: death probability of widows/widowers +#' * qgx: death probability of total group (irrespective of state) +#' +#' @slot qx Death probability table of actives (derived from mortalityTable) +#' @slot ix Invalidity probability of actives (derived from mortalityTable) +#' @slot qxi Death probability table of invalids (derived from mortalityTable) +#' @slot rx Reactivation probability of invalids (derived from mortalityTable) +#' @slot apx Retirement probability of actives (derived from mortalityTable) +#' @slot apix Retirement probability of invalids (derived from mortalityTable) +#' @slot qpx Death probability of old age pensioners (derived from mortalityTable) +#' @slot hx Probability of a widow at the moment of death (derived from mortalityTable) +#' @slot qwy Death probability of widow(er)s (derived from mortality Table) +#' @slot yx Age difference of the widow to the deceased +#' @slot qgx Death probability of whole group (derived from mortalityTable), irrespective of state +#' +#' @export pensionTable +#' @exportClass pensionTable +pensionTable = setClass( + "pensionTable", + slots = list( + qx = "mortalityTable", + ix = "mortalityTable", + qix = "mortalityTable", + rx = "mortalityTable", + apx = "mortalityTable", + apix = "mortalityTable", + qpx = "mortalityTable", + hx = "mortalityTable", + qwy = "mortalityTable", + yx = "mortalityTable", + qgx = "mortalityTable" + ), + contains = "mortalityTable" +) + +#' @describeIn baseTable Return the base table of the joint lives mortality table (returns the base table of the first table used for joint lives) +setMethod("transitionProbabilities", "pensionTable", + function(object, ..., YOB = 1982) { + x = ages(object@qx); + q = deathProbabilities(object@qx, ..., YOB = YOB); + i = deathProbabilities(object@ix, ..., YOB = YOB); + data.frame(x, q, i) + }) + diff --git a/man/MortalityTables-package.Rd b/man/MortalityTables-package.Rd index 551781a..d2e5589 100644 --- a/man/MortalityTables-package.Rd +++ b/man/MortalityTables-package.Rd @@ -8,4 +8,14 @@ \description{ Provide life table classes for life insurance purposes } +\seealso{ +Useful links: +\itemize{ + \item \url{https://gitlab.open-tools.net/R/r-mortality-tables} +} + +} +\author{ +\strong{Maintainer}: Reinhold Kainhofer \email{reinhold@kainhofer.com} +} diff --git a/man/ageShift.Rd b/man/ageShift.Rd index ddaed95..6692a38 100644 --- a/man/ageShift.Rd +++ b/man/ageShift.Rd @@ -25,6 +25,7 @@ Return the age shift of the age-shifted life table given the birth year \item \code{mortalityTable.ageShift}: Return the age shift of the age-shifted life table given the birth year }} + \examples{ mortalityTables.load("Austria_Annuities") ageShift(AVOe2005R.male.av, YOB=1910) @@ -32,4 +33,3 @@ ageShift(AVOe2005R.male.av, YOB=1955) ageShift(AVOe2005R.male.av, YOB=2010) } - diff --git a/man/ages.Rd b/man/ages.Rd index 6e16e69..4303615 100644 --- a/man/ages.Rd +++ b/man/ages.Rd @@ -3,11 +3,11 @@ \docType{methods} \name{ages} \alias{ages} -\alias{ages,mortalityTable.joined-method} -\alias{ages,mortalityTable.jointLives-method} +\alias{ages,mortalityTable.period-method} \alias{ages,mortalityTable.mixed-method} +\alias{ages,mortalityTable.joined-method} \alias{ages,mortalityTable.observed-method} -\alias{ages,mortalityTable.period-method} +\alias{ages,mortalityTable.jointLives-method} \title{Return the defined ages of the life table} \usage{ ages(object, ...) @@ -42,6 +42,7 @@ Return the defined ages of the life table \item \code{mortalityTable.jointLives}: Return the defined ages of the joint lives mortality table (returns the ages of the first table used for joint lives) }} + \examples{ mortalityTables.load("Austria_*", wildcard=TRUE) ages(AVOe2005R.male) @@ -49,4 +50,3 @@ ages(AVOe1996R.male) ages(mort.AT.census.2011.male) } - diff --git a/man/baseTable.Rd b/man/baseTable.Rd index 85afef6..98c3537 100644 --- a/man/baseTable.Rd +++ b/man/baseTable.Rd @@ -4,8 +4,8 @@ \name{baseTable} \alias{baseTable} \alias{baseTable,mortalityTable-method} -\alias{baseTable,mortalityTable.jointLives-method} \alias{baseTable,mortalityTable.period-method} +\alias{baseTable,mortalityTable.jointLives-method} \title{Return the base table of the life table} \usage{ baseTable(object, ...) @@ -32,9 +32,9 @@ Return the base table of the life table \item \code{mortalityTable.jointLives}: Return the base table of the joint lives mortality table (returns the base table of the first table used for joint lives) }} + \examples{ mortalityTables.load("Austria_Annuities") baseTable(AVOe2005R.male) } - diff --git a/man/baseYear.Rd b/man/baseYear.Rd index 3d4f848..bcaa4fd 100644 --- a/man/baseYear.Rd +++ b/man/baseYear.Rd @@ -4,8 +4,8 @@ \name{baseYear} \alias{baseYear} \alias{baseYear,mortalityTable-method} -\alias{baseYear,mortalityTable.jointLives-method} \alias{baseYear,mortalityTable.mixed-method} +\alias{baseYear,mortalityTable.jointLives-method} \title{Return the base year of the life table} \usage{ baseYear(object, ...) @@ -32,9 +32,9 @@ Return the base year of the life table \item \code{mortalityTable.jointLives}: Return the base year of the life table }} + \examples{ mortalityTables.load("Austria_Annuities") baseYear(AVOe2005R.male) } - diff --git a/man/deathProbabilities.Rd b/man/deathProbabilities.Rd index 2763443..8aa7f1e 100644 --- a/man/deathProbabilities.Rd +++ b/man/deathProbabilities.Rd @@ -1,14 +1,15 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/deathProbabilities.R, R/mortalityTable.jointLives.R +% Please edit documentation in R/deathProbabilities.R, +% R/mortalityTable.jointLives.R \docType{methods} \name{deathProbabilities} \alias{deathProbabilities} +\alias{deathProbabilities,mortalityTable.period-method} \alias{deathProbabilities,mortalityTable.ageShift-method} +\alias{deathProbabilities,mortalityTable.trendProjection-method} \alias{deathProbabilities,mortalityTable.improvementFactors-method} -\alias{deathProbabilities,mortalityTable.jointLives-method} \alias{deathProbabilities,mortalityTable.mixed-method} -\alias{deathProbabilities,mortalityTable.period-method} -\alias{deathProbabilities,mortalityTable.trendProjection-method} +\alias{deathProbabilities,mortalityTable.jointLives-method} \title{Return the (cohort) death probabilities of the life table given the birth year (if needed)} \usage{ deathProbabilities(object, ..., YOB = 1975) diff --git a/man/generateAgeShift.Rd b/man/generateAgeShift.Rd index 7a7415d..01bbcd8 100644 --- a/man/generateAgeShift.Rd +++ b/man/generateAgeShift.Rd @@ -20,4 +20,3 @@ class. \examples{ generateAgeShift(1, YOBs = c(1922, 1944, 1958, 1973, 1989, 2006, 2023, 2041, 2056)) } - diff --git a/man/getOmega.Rd b/man/getOmega.Rd index 9a63a4e..da89593 100644 --- a/man/getOmega.Rd +++ b/man/getOmega.Rd @@ -3,11 +3,11 @@ \docType{methods} \name{getOmega} \alias{getOmega} -\alias{getOmega,mortalityTable.joined-method} -\alias{getOmega,mortalityTable.jointLives-method} +\alias{getOmega,mortalityTable.period-method} \alias{getOmega,mortalityTable.mixed-method} +\alias{getOmega,mortalityTable.joined-method} \alias{getOmega,mortalityTable.observed-method} -\alias{getOmega,mortalityTable.period-method} +\alias{getOmega,mortalityTable.jointLives-method} \title{Return the maximum age of the life table} \usage{ getOmega(object) diff --git a/man/makeQxDataFrame.Rd b/man/makeQxDataFrame.Rd index 7ac7c8e..4bbac45 100644 --- a/man/makeQxDataFrame.Rd +++ b/man/makeQxDataFrame.Rd @@ -24,4 +24,3 @@ It is not required to call this function manually, \code{plotMortalityTables} will automatically do it if object derived from class \code{mortalityTable} are passed. } - diff --git a/man/mortalityComparisonTable.Rd b/man/mortalityComparisonTable.Rd index 1b9ae60..340da8a 100644 --- a/man/mortalityComparisonTable.Rd +++ b/man/mortalityComparisonTable.Rd @@ -37,4 +37,3 @@ mortalityComparisonTable( } - diff --git a/man/mortalityTable-class.Rd b/man/mortalityTable-class.Rd index 79d788f..eca7d5b 100644 --- a/man/mortalityTable-class.Rd +++ b/man/mortalityTable-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.R \docType{class} \name{mortalityTable-class} -\alias{mortalityTable} \alias{mortalityTable-class} +\alias{mortalityTable} \title{Class mortalityTable} \description{ Class \code{mortalityTable} is the (virtual) base class for all mortality diff --git a/man/mortalityTable.ageShift-class.Rd b/man/mortalityTable.ageShift-class.Rd index 5d1523c..bda4c19 100644 --- a/man/mortalityTable.ageShift-class.Rd +++ b/man/mortalityTable.ageShift-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.ageShift.R \docType{class} \name{mortalityTable.ageShift-class} -\alias{mortalityTable.ageShift} \alias{mortalityTable.ageShift-class} +\alias{mortalityTable.ageShift} \title{Class mortalityTable.ageShift - Cohort life tables generated by age-shift} \description{ A cohort life table, obtained by age-shifting from a given base table (death probabilities diff --git a/man/mortalityTable.improvementFactors-class.Rd b/man/mortalityTable.improvementFactors-class.Rd index b8b3f67..7624964 100644 --- a/man/mortalityTable.improvementFactors-class.Rd +++ b/man/mortalityTable.improvementFactors-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.improvementFactors.R \docType{class} \name{mortalityTable.improvementFactors-class} -\alias{mortalityTable.improvementFactors} \alias{mortalityTable.improvementFactors-class} +\alias{mortalityTable.improvementFactors} \title{Class mortalityTable.improvementFactors - Cohort life table with improvement factors} \description{ diff --git a/man/mortalityTable.joined-class.Rd b/man/mortalityTable.joined-class.Rd index 6900551..5f4c481 100644 --- a/man/mortalityTable.joined-class.Rd +++ b/man/mortalityTable.joined-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.joined.R \docType{class} \name{mortalityTable.joined-class} -\alias{mortalityTable.joined} \alias{mortalityTable.joined-class} +\alias{mortalityTable.joined} \title{Class mortalityTable.joined - Life table created by joining two life tables} \description{ A cohort life table obtained by joining two cohort life tables, each of which diff --git a/man/mortalityTable.jointLives-class.Rd b/man/mortalityTable.jointLives-class.Rd index 13c3610..c2c911d 100644 --- a/man/mortalityTable.jointLives-class.Rd +++ b/man/mortalityTable.jointLives-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.jointLives.R \docType{class} \name{mortalityTable.jointLives-class} -\alias{mortalityTable.jointLives} \alias{mortalityTable.jointLives-class} +\alias{mortalityTable.jointLives} \title{Class mortalityTable.jointLives - Life table for multiple joint lives} \description{ A cohort life table obtained by calculating joint death probabilities for diff --git a/man/mortalityTable.mixed-class.Rd b/man/mortalityTable.mixed-class.Rd index 4a2e9ce..565d125 100644 --- a/man/mortalityTable.mixed-class.Rd +++ b/man/mortalityTable.mixed-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.mixed.R \docType{class} \name{mortalityTable.mixed-class} -\alias{mortalityTable.mixed} \alias{mortalityTable.mixed-class} +\alias{mortalityTable.mixed} \title{Class mortalityTable.mixed - Life table as a mix of two life tables} \description{ A cohort life table obtained by mixing two life tables with the given weights diff --git a/man/mortalityTable.observed-class.Rd b/man/mortalityTable.observed-class.Rd index e1f8f90..f02407c 100644 --- a/man/mortalityTable.observed-class.Rd +++ b/man/mortalityTable.observed-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.observed.R \docType{class} \name{mortalityTable.observed-class} -\alias{mortalityTable.observed} \alias{mortalityTable.observed-class} +\alias{mortalityTable.observed} \title{Class mortalityTable.observed - Life table from actual observations} \description{ A cohort life table described by actual observations (data frame of PODs diff --git a/man/mortalityTable.period-class.Rd b/man/mortalityTable.period-class.Rd index e433a3a..c615986 100644 --- a/man/mortalityTable.period-class.Rd +++ b/man/mortalityTable.period-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.period.R \docType{class} \name{mortalityTable.period-class} -\alias{mortalityTable.period} \alias{mortalityTable.period-class} +\alias{mortalityTable.period} \title{Class mortalityTable.period - Period life tables} \description{ A period life table, giving death probabilities for each age, up to diff --git a/man/mortalityTable.trendProjection-class.Rd b/man/mortalityTable.trendProjection-class.Rd index 85d8f35..188204e 100644 --- a/man/mortalityTable.trendProjection-class.Rd +++ b/man/mortalityTable.trendProjection-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/mortalityTable.trendProjection.R \docType{class} \name{mortalityTable.trendProjection-class} -\alias{mortalityTable.trendProjection} \alias{mortalityTable.trendProjection-class} +\alias{mortalityTable.trendProjection} \title{Class mortalityTable.trendProjection - Cohort mortality table with age-specific trend} \description{ A cohort mortality table, obtained by a trend projection from a given base table diff --git a/man/mortalityTables.list.Rd b/man/mortalityTables.list.Rd index a8c18d8..cf1d105 100644 --- a/man/mortalityTables.list.Rd +++ b/man/mortalityTables.list.Rd @@ -17,4 +17,3 @@ directory. Defaults to the "MortalityTables" package.} List all available sets of life tables provided by the \link[MortalityTables]{MortalityTables-package} package An existing life table can then be loaded with \link{mortalityTables.load}. } - diff --git a/man/mortalityTables.load.Rd b/man/mortalityTables.load.Rd index 26b13d8..f8ce268 100644 --- a/man/mortalityTables.load.Rd +++ b/man/mortalityTables.load.Rd @@ -19,4 +19,3 @@ directory. Defaults to the "MortalityTables" package.} \description{ Load a named set of mortality tables provided by the \link{MortalityTables} package } - diff --git a/man/pensionTable-class.Rd b/man/pensionTable-class.Rd new file mode 100644 index 0000000..7a0eeb1 --- /dev/null +++ b/man/pensionTable-class.Rd @@ -0,0 +1,54 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/pensionTable.R +\docType{class} +\name{pensionTable-class} +\alias{pensionTable-class} +\alias{pensionTable} +\title{Class pensionTable} +\description{ +Class \code{pensionTable} is the (virtual) base class for all pensions +tables. It contains the name and some general values applying to all +types of tables. In particular, it holds individual tables for each of the +transition probabilities. Possible states are: + * active: healty, no pension, typically paying some kin of premium + * incapacity: disablity pension, in most cases permanent, not working, early pension + * retirement: old age pension, usually starting with a fixed age + * dead + * Widow/widower pension +} +\details{ +Correspondingly, the following transition probabilities can be given: + * qxaa: death probability of actives (active -> dead) + * ix: invalidity probability (active -> incapacity) + * qxi: death probability of invaid (invalid -> dead) + * rx: reactivation probability (incapacity -> active) + * apx: retirement probability (active -> retirement), typically 1 for a fixed age + * apx: retirement probability of invalids (invalid -> retirement), typically 0 or 1 for a fixed age + * qxApm: death probability of retired (retired -> dead) + * hx: probability of a widow at moment of death (dead -> widow), y(x) age differene + * qxw: death probability of widows/widowers +} +\section{Slots}{ + +\describe{ +\item{\code{qx}}{Death probability table of actives (derived from mortalityTable)} + +\item{\code{ix}}{Invalidity probability of actives (derived from mortalityTable)} + +\item{\code{qxi}}{Death probability table of invalids (derived from mortalityTable)} + +\item{\code{rx}}{Reactivation probability of invalids (derived from mortalityTable)} + +\item{\code{apx}}{Retirement probability of actives (derived from mortalityTable)} + +\item{\code{apxi}}{Retirement probability of invalids (derived from mortalityTable)} + +\item{\code{qxApm}}{Death probability of old age pensioners (derived from mortalityTable)} + +\item{\code{hx}}{Probability of a widow at the moment of death (derived from mortalityTable)} + +\item{\code{qxw}}{Death probability of widow(er)s (derived from mortality Table)} + +\item{\code{xy}}{Age difference of the widow to the deceased} +}} + diff --git a/man/periodDeathProbabilities.Rd b/man/periodDeathProbabilities.Rd index 056d335..0edd28e 100644 --- a/man/periodDeathProbabilities.Rd +++ b/man/periodDeathProbabilities.Rd @@ -1,14 +1,15 @@ % Generated by roxygen2: do not edit by hand -% Please edit documentation in R/periodDeathProbabilities.R, R/mortalityTable.jointLives.R +% Please edit documentation in R/periodDeathProbabilities.R, +% R/mortalityTable.jointLives.R \docType{methods} \name{periodDeathProbabilities} \alias{periodDeathProbabilities} +\alias{periodDeathProbabilities,mortalityTable.period-method} \alias{periodDeathProbabilities,mortalityTable.ageShift-method} +\alias{periodDeathProbabilities,mortalityTable.trendProjection-method} \alias{periodDeathProbabilities,mortalityTable.improvementFactors-method} -\alias{periodDeathProbabilities,mortalityTable.jointLives-method} \alias{periodDeathProbabilities,mortalityTable.mixed-method} -\alias{periodDeathProbabilities,mortalityTable.period-method} -\alias{periodDeathProbabilities,mortalityTable.trendProjection-method} +\alias{periodDeathProbabilities,mortalityTable.jointLives-method} \title{Return the (period) death probabilities of the life table for a given observation year} \usage{ diff --git a/man/plot.mortalityTable.Rd b/man/plot.mortalityTable.Rd index 6f2082d..e7a3363 100644 --- a/man/plot.mortalityTable.Rd +++ b/man/plot.mortalityTable.Rd @@ -65,4 +65,3 @@ plot(mort.AT.census.1869.male, mort.AT.census.1869.female, \seealso{ \code{\link{plotMortalityTables}} and \code{\link{plotMortalityTableComparisons}} } - diff --git a/man/plotMortalityTableComparisons.Rd b/man/plotMortalityTableComparisons.Rd index aa1ba20..e003d09 100644 --- a/man/plotMortalityTableComparisons.Rd +++ b/man/plotMortalityTableComparisons.Rd @@ -32,4 +32,3 @@ plotMortalityTableComparisons(data, ..., xlim = NULL, ylim = NULL, \description{ \code{plotMortalityTableComparisons} prints multiple life tables (objects of child classes of \code{mortalityTable}) in one plot and scales each by the given reference table, so that the relative mortality can be easily seen. A legend is added showing the names of the tables. } - diff --git a/man/plotMortalityTables.Rd b/man/plotMortalityTables.Rd index d767fbd..22f65d5 100644 --- a/man/plotMortalityTables.Rd +++ b/man/plotMortalityTables.Rd @@ -30,4 +30,3 @@ plotMortalityTables(data, ..., xlim = NULL, ylim = NULL, xlab = NULL, \description{ \code{plotMortalityTables} prints multiple life tables (objects of child classes of \code{mortalityTable}) in one log-linear plot, with a legend showing the names of the tables. } - -- GitLab