Learn R Programming

termstrc (version 1.3.7)

objfct_dl: Diebold/Li Loss Function for Yields

Description

Calculates the sum of the squared spot rate error.

Usage

objfct_dl(beta, lambda, m, y)

Arguments

beta
Paramter vector of the Diebold/Li spot rate function (for details see: spr_dl),
lambda
Fixed spot rate function parameter
m
maturity vector
y
observed yield vector