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
qx
the vector of mortality / death probabilities
m
the number of yearly payments
mCorrection
the list of alpha/beta to correct present values for multiple payments per year
v
the 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
advance
the payment cashflows in advance
arrears
the payment cashflows in arrears
start
the time index, where the PV calculation should be based
...
other parameters (currently not used, for future use)
m
the number of yearly payments
mCorrection
the list of alpha/beta to correct present values for multiple payments per year
v
the 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
advance
the payment cashflows in advance
arrears
the payment cashflows in arrears
start
the time index, where the PV calculation should be based
...
other parameters (currently not used, for future use)
m
the number of yearly payments
mCorrection
the list of alpha/beta to correct present values for multiple payments per year
v
the discount factor (1 / (1+i))
Method death()
Present values of death benefits
Usage
PVfactory$death(benefits, start = 0, ..., v = private$v)
Arguments
benefits
the vector of death / invalidity / disease benefits
start
the time index, where the PV calculation should be based
...
other parameters (currently not used, for future use)
v
the discount factor (1 / (1+i))
Method disease()
Present values of disease benefits
Usage
PVfactory$disease(benefits, start = 0, ..., v = private$v)
Arguments
benefits
the vector of death / invalidity / disease benefits
start
the time index, where the PV calculation should be based
...
other parameters (currently not used, for future use)
v
the 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
advance
the payment cashflows in advance
arrears
the payment cashflows in arrears
start
the time index, where the PV calculation should be based
...
other parameters (currently not used, for future use)
m
the number of yearly payments
mCorrection
the list of alpha/beta to correct present values for multiple payments per year
v
the discount factor (1 / (1+i))
Method clone()
The objects of this class are cloneable with this method.
Usage
PVfactory$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.