Learn R Programming

termstrc (version 1.3.7)

fwr_ns: Forward Rate Calculation according to Nelson/Siegel.

Description

Calculate forward rates according to Nelson/Siegel(1987).

Usage

fwr_ns(beta, m)

Arguments

beta
parameter vector ${\bm{\beta}} = \left(\beta_0,\beta_1,\beta_2,\tau_1\right)$.
m
maturity or maturity vector.

Value

  • The function returns the calculated forward rate (vector).

Details

The forward rate for a maturity $m$ is calculated using the following relation:

$$f(m,\bm{\beta}) = \beta_0+\beta_1\exp\left(-\frac{m}{\tau_1}\right)+\beta_2\left[\left(\frac{m}{\tau_1}\right)\exp\left(-\frac{m}{\tau_1}\right)\right].$$

References

Charles R. Nelson and Andrew F. Siegel (1987): Parsimonious Modeling of Yield Curves. The Journal of Business, 60(4):473--489.

See Also

fwr_sv,fwr_dl, forwardrates

Examples

Run this code
fwr_ns(beta=c(0.03,0.02,0.01,5),1:30)

Run the code above in your browser using DataLab