powered by
Class providing the periodic payment of a GMWB contract. It is stated as a given percentage of the premium.
payoff_GMWB
Object of R6Class
R6Class
R6Class object.
new
Initialize method. The arguments are a non negative scalar with the premium and a scalar between 0 and 1 with the percentage.
set_premium
Stores the premium in a private field. The argument is a non negative scalar
get_premium
Returns the premium as non negative scalar
set_beta
Sets the percentage. The argument is a scalar between 0 and 1
get_beta
Gets the percentage
get_payoff
Gets the payoff
# NOT RUN { premium <- 100 beta <- 0.15 GMWB_payment <- payoff_GMWB$new(premium, beta) GMWB_payment$get_payoff() # }
Run the code above in your browser using DataLab