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.
1 | grad_sv_grid(beta, tau, m, y)
|
beta |
Spot rate function parameter vector |
tau |
fixed parameters |
m |
maturity vector |
y |
yield vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.