powered by
impl_fwr(m, s)
$$f(t',T) = \frac{s(m_T)m_T - s(m_{t'})m_{t'}}{m_T-m_{t'}},$$
whereas $s(m_T), s(m_{t'})$ is the spot rate for a maturity $m_T,m_{t'}$ respectively.
s <- spr_ns(c(0.03,0.02,0.01,5),1:30) impl_fwr(s,m=1:30)
Run the code above in your browser using DataLab