calcMortFactors {vamc} | R Documentation |
Calculate Mortality Factors
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
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
exPolicy <- VAPort[1, ]
calcMortFactors(exPolicy, mortTable, dT = 1 / 12)
[Package vamc version 0.2.1 Index]