objfct_ns_bonds: Nelson/Siegel Loss Function for Bonds

Description Usage Arguments

View source: R/spotfwdratedef.R

Description

Calculates the sum of the weighted squared price error.

Usage

1
objfct_ns_bonds(beta, m, cf, w, p)

Arguments

beta

Parameter vector of the Nelson/Siegel spot rate function

m

maturity matrix

cf

cashflow matrix

w

weights

p

price vector


termstrc documentation built on May 29, 2017, 1:05 p.m.