Language Reference |
calculates a column vector of spot rates given vectors of forward rates and times
For example, the following code produces the output shown:
time=T(do(1,5,1)); forward=T(do(0.05,0.09,0.01)); spot=spot(time,forward); print spot;
SPOT 0.05 0.0549882 0.0599686 0.0649413 0.0699065
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.