50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


termstrc (version 1.3.7)

grad_asv_bonds: adjusted Svensson Gradient Function

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 an adjusted version of Svensson.

Usage

grad_asv_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