calcMortFactors: 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.
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.