Language Reference
FORWARD Function
FORWARD (times, spot_rates) ;
This function is supported by the IML procedure and the iml action.
The FORWARD function computes a column vector of (per-period) forward rates, given vectors of spot rates and times. The arguments to the function are as follows:
The FORWARD function transforms the given spot rates as
For example, the following statements compute forward rates:
time = T(do(1, 5, 1));
spot = T(do(0.05, 0.09, 0.01));
forward = forward(time, spot);
print forward;
Figure 161: Forward Rates
| forward |
|---|
| 0.05 |
| 0.0700952 |
| 0.0902839 |
| 0.1105642 |
| 0.1309345 |
Last updated: April 16, 2021