grad_sv_bonds: Svensson Gradient Function

Description Usage Arguments Value

View source: R/gradfunc.R

Description

Calculates the gradient of the objective function. The objective function minimizes the sum of the weighted squared price errors. The spot rate function is based on Svensson.

Usage

1
grad_sv_bonds(beta, m, cf, w, p)

Arguments

beta

Spot rate parameter vector

m

maturity matrix

cf

cashflow matrix

w

weights vector

p

price vector

Value

returns the gradient vector


termstrc documentation built on May 29, 2017, 1:05 p.m.