Diebold/Li Gradient function

Share:

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 Diebold/Li.

Usage

1
grad_dl_bonds(beta, lambda, m, cf, w, p)

Arguments

beta

Spot rate parameter vector

lambda

fixed spot rate parameter

m

maturity matrix

cf

cashflow matrix

w

weights vector

p

price vector

Value

returns the gradient vector

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.