Previous: , Up: Octave octarisk Classes   [Contents][Index]


4.18 Retail.help

Octarisk Class: object = Retail(id)
Octarisk Class: object = Retail()

Class for setting up various Retail objects like saving plans with bonus or defined contribution pension plans and retirement expenses. Cash flows are generated specific for each Retail sub type and subsequently discounted to calculate the Retail value.

In the following, all methods and attributes are explained and a code example is given.

Methods for Retail object obj:

Attributes of Retail objects:

For illustration see the following example: A monthly savings plan with extra payments and bonus at maturity is valuated. The resulting base value (52803.383344) and effective duration (4.9362)is retrieved:


disp('Pricing Savings Plan');
rates_base = [0.0056,0.02456];
rates_stress = rates_base + [-0.05;-0.03;0.0;0.03;0.05];
valuation_date = '31-May-2019';
r = Retail();
r = r.set('Name','Test_SAVPLAN','sub_type','SAVPLAN', ...
'coupon_rate',0.0155,'coupon_generation_method', ...
'backward','term',1,'term_unit','months');
r = r.set('maturity_date','05-May-2024','compounding_type', ...
'simple','savings_rate',500);
r = r.set('savings_startdate','05-May-2014', ...
'savings_enddate','05-May-2021');
r = r.set('extra_payment_values',[17500], ...
'extra_payment_dates',cellstr('17-May-2019'), ...
'bonus_value_current',0.5,'bonus_value_redemption',0.15);
r = r.set('notice_period',3,'notice_period_unit','months');
r = r.rollout('base',valuation_date);
r = r.rollout('stress',valuation_date);
c = Curve();
c = c.set('id','IR_EUR','nodes',[365,7300]);
c = c.set('rates_base',rates_base,'rates_stress',rates_stress);
c = c.set('method_interpolation','linear');
r = r.calc_value(valuation_date,'base',c);
r = r.calc_value(valuation_date,'stress',c);
r = r.calc_sensitivities(valuation_date,c);
r = r.calc_key_rates(valuation_date,c);
r

Dependencies of class:

Retail

Previous: , Up: Octave octarisk Classes   [Contents][Index]