search for: par_valu

Displaying 3 results from an estimated 3 matches for "par_valu".

Did you mean: par_value
2010 Jan 19
0
Macualay Duration code in a Functional Form - Please Help
# I have written this code in Notepad++ and copied here. ## ONS - PPA    Duration = function(par_value, coupon_rate, freq_coupon, tenure, ytm) { macaulay_duration  =   NULL modified_duration    =   NULL freq_coupon_new    =   NULL if(freq_coupon <= 0) {     freq_coupon_new = 365 } if(freq_coupon > 0 & freq_coupon <= 1) {     freq_coupon_new = 12 } if(freq_coupon > 1 & fre...
2010 Jan 20
2
Please Please Please Help me!!
...rrect results for a given single set of data. I just wish to wish to use it for multiple data.)   I have defined a function (as given below) which helps me calculate Macaulay Duration and Modified Duration and its working fine with given set of data.   My Code -   ## ONS - PPA   duration = function(par_value, coupon_rate, frequency_copoun, tenure, ytm)   { macaulay_duration  =   NULL modified_duration    =   NULL freq_coupon_new    =   NULL   if(frequency_copoun <= 0) {     freq_coupon_new = 365 }   if(frequency_copoun > 0 & frequency_copoun <= 1) {     freq_coupon_new = 12 }   if(freq...
2010 Jan 19
0
Macaulay Duration for Group
Dear R helpers   I have following csv file which is an input   id       par_value    coupon_rate     frequency_coupon   tenure    ytm   1            1000             10                      1                     5          12   # Here frequency_coupon is coded s.t. 0 means Daily compounding, 1 means monthly compouding, 2 means Quarterly, 3 means Half yearly and 4 means only onc...