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

Description Usage Arguments Examples

View source: R/utilityFunctions.R

Description

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

Usage

1
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

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

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