grad_asv_bonds_grid: adjusted 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 weighted squared price errors. The spot rate function is based on an adjusted version of Svensson.
Usage
grad_asv_bonds_grid(beta, tau, m, cf, w, p)
Arguments
beta
Spot rate parameter vector