search for: zero_rate1

Displaying 1 result from an estimated 1 matches for "zero_rate1".

Did you mean: zero_rate
2010 Aug 20
1
Shifting of Principal amount while calculating Present Value
...100)^3 which is equal to 106.3549 Similarly when used the respective rates,  PV(A) = 106.2122, PV(A) = 105.7969 and PV(BBB) = 104.8871 ######################################################### ## My problem I have tried the following R code. zero_rate = read.csv('zero_rate_table.csv') zero_rate1 = zero_rate[, -1] cash_flow = c(7, 7, 107) t = c(1,2,3) PV_table = cash_flow / (1+zero_rate1/100)^t ## Then using rowSums, I should get the required result. However, I am getting following output as > PV_table         year_1        year_2       year_3 [1,]  6.756757     6.45078      93.14...