grad_ns_bonds: Nelson/Siegel 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 Nelson/Siegel.
Usage
grad_ns_bonds(beta, m, cf, w, p)
Arguments
beta
Spot rate parameter vector