Learn R Programming

termstrc (version 1.3.7)

objfct_dl_bonds: Diebold/Li Loss Function for Bonds

Description

Calculates the sum of the weighted squared price error.

Usage

objfct_dl_bonds(beta, lambda, m, cf, w, p)

Arguments

beta
Paramter vector of the Diebold/Li spot rate function
lambda
Lambda of the Diebold/Li spot rate function
m
maturity matrx
cf
cashflow matrix
w
weights vector
p
price vector