Learn R Programming

termstrc (version 1.3.7)

forwardrates: Forward Rate Calculation

Description

Calculates forward rates according to the Diebold/Li, Nelson/Siegel, Svensson approach.

Usage

forwardrates(method, beta, m, lambda)

Arguments

method
forward rate function type: "dl" for Diebold/Li, "ns" for Nelson/Siegel, "sv" for Svensson,"asv" for adjusted Svensson.
beta
parameter vector $\bm{\beta}$.
m
maturity or a vector of maturities.
lambda
$=1/\tau_1$, a scalar; only required for Diebold/Li forward rate function

Value

See Also

fwr_dl, fwr_ns, fwr_sv

Examples

Run this code
forwardrates(method="ns",beta=c(0.03,0.02,0.01,5),m=1:30)

Run the code above in your browser using DataLab