calcMortFactors: Calculate Mortality Factors

Description Usage Arguments Value Examples

View source: R/Step4_MonteCarloValuation.R

Description

Calculates the mortality factors (t - 1)px q(x + t - 1) and tpx required to valuate the inPolicy. Extract gender, age (birth date & current date), valuation date (current date), and maturity date from inPolicy, mortality rates from mortTable.

Usage

1
calcMortFactors(inPolicy, mortTable, dT = 1/12)

Arguments

inPolicy

A vector containing 45 attributes of a VA policy, usually a row of a VA portfolio dataframe.

mortTable

A dataframe with three columns of doubles representing the mortality table.

dT

A double of stepsize in years; dT = 1 / 12 would be monthly.

Value

Outputs a two-column data frame of doubles of mortFactors (t - 1)px q(x + t - 1) and tpx.

Examples

1
2
exPolicy <- VAPort[1, ]
calcMortFactors(exPolicy, mortTable, dT = 1 / 12)

vamc documentation built on Feb. 28, 2020, 5:08 p.m.