mT.scaleProbs: Scale all probabilities of the given 'mortalityTable'...

View source: R/utilityFunctions.R

mT.scaleProbsR Documentation

Scale all probabilities of the given mortalityTable object(s) by the given factor

Description

Scale all probabilities of the given mortalityTable object(s) by the given factor

Usage

mT.scaleProbs(table, factor = 1, name.postfix = "scaled", name = NULL)

Arguments

table

A life table object (instance of a mortalityTable class) or a list, table or array of mortalityTable objects

factor

Scaling factor for the probabilities (1.0 means unchanged)

name.postfix

String to append to the original name of the table

name

New name, overwriting the existing name of the table (takes precedence over name.postfix)

Examples

mortalityTables.load("Austria_Annuities")
mT.scaleProbs(AVOe2005R.male, 1.5) # Add 50% to all death probabilities of the table


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