Description Usage Arguments Value Examples
View source: R/Step4_MonteCarloValuation.R
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.
1 | calcMortFactors(inPolicy, mortTable, dT = 1/12)
|
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. |
Outputs a two-column data frame of doubles of mortFactors (t - 1)px q(x + t - 1) and tpx.
1 2 | exPolicy <- VAPort[1, ]
calcMortFactors(exPolicy, mortTable, dT = 1 / 12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.