Learn R Programming

termstrc (version 1.3.7)

objfct_sv_bonds: Svensson Loss Function for Bonds

Description

Calculates the sum of the weighted squared price error.

Usage

objfct_sv_bonds(beta, m, cf, w, p)

Arguments

beta
Parameter vector of the Svensson spot rate function.
m
maturity matrix
cf
cashflow matrix
w
weights
p
price vector