Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

termstrc (version 1.3.7)

grad_sv_grid: Svensson Gradient Function for the Grid Search

Description

Calculates the gradient of the objective function for the grid search. The objective function minimizes the sum of the squared yield errors. The spot rate function is based on Svensson.

Usage

grad_sv_grid(beta, tau, m, y)

Arguments

beta
Spot rate function parameter vector
tau
fixed parameters
m
maturity vector
y
yield vector