| PVfactory {LifeInsureR} | R Documentation |
PVfactory (R6Class for present values with arbitrary dimensions)
Description
PVfactory (R6Class for present values with arbitrary dimensions)
PVfactory (R6Class for present values with arbitrary dimensions)
Details
provides functions to calculate present values for survival, death, dread disease, invalidity and guaranteed benefits in various dimensions
Methods
Public methods
Method new()
Initialize the present value factory with defaults for qx, interest and multiple payments per year
Usage
PVfactory$new(qx, m = 1, mCorrection = list(alpha = 1, beta = 0), v = 1)
Arguments
qxthe vector of mortality / death probabilities
mthe number of yearly payments
mCorrectionthe list of alpha/beta to correct present values for multiple payments per year
vthe discount factor (1 / (1+i))
Method guaranteed()
Present values of guaranteed benefits (paid in advance or arrears, possible multiple times per year)
Usage
PVfactory$guaranteed( advance = NULL, arrears = NULL, start = 0, ..., m = private$m, mCorrection = private$mCorrection, v = private$v )
Arguments
advancethe payment cashflows in advance
arrearsthe payment cashflows in arrears
startthe time index, where the PV calculation should be based
...other parameters (currently not used, for future use)
mthe number of yearly payments
mCorrectionthe list of alpha/beta to correct present values for multiple payments per year
vthe discount factor (1 / (1+i))
Method survival()
Present values of survival benefits (paid in advance or arrears, possible multiple times per year)
Usage
PVfactory$survival( advance = NULL, arrears = NULL, start = 0, ..., m = private$m, mCorrection = private$mCorrection, v = private$v )
Arguments
advancethe payment cashflows in advance
arrearsthe payment cashflows in arrears
startthe time index, where the PV calculation should be based
...other parameters (currently not used, for future use)
mthe number of yearly payments
mCorrectionthe list of alpha/beta to correct present values for multiple payments per year
vthe discount factor (1 / (1+i))
Method death()
Present values of death benefits
Usage
PVfactory$death(benefits, start = 0, ..., v = private$v)
Arguments
benefitsthe vector of death / invalidity / disease benefits
startthe time index, where the PV calculation should be based
...other parameters (currently not used, for future use)
vthe discount factor (1 / (1+i))
Method disease()
Present values of disease benefits
Usage
PVfactory$disease(benefits, start = 0, ..., v = private$v)
Arguments
benefitsthe vector of death / invalidity / disease benefits
startthe time index, where the PV calculation should be based
...other parameters (currently not used, for future use)
vthe discount factor (1 / (1+i))
Method afterDeath()
Present values of guaranteed benefits after death (paid in advance or arrears, possible multiple times per year)
Usage
PVfactory$afterDeath( advance = NULL, arrears = NULL, start = 0, ..., m = private$m, mCorrection = private$mCorrection, v = private$v )
Arguments
advancethe payment cashflows in advance
arrearsthe payment cashflows in arrears
startthe time index, where the PV calculation should be based
...other parameters (currently not used, for future use)
mthe number of yearly payments
mCorrectionthe list of alpha/beta to correct present values for multiple payments per year
vthe discount factor (1 / (1+i))
Method clone()
The objects of this class are cloneable with this method.
Usage
PVfactory$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.