Learn R Programming

termstrc (version 1.3.7)

objfct_ns: Nelson/Siegel Loss Function for Yields

Description

Calculates the sum of the squared spot rate error.

Usage

objfct_ns(beta, m, y)

Arguments

beta
Paramter vector of the Nelson/Siegel spot rate function (for details see: spr_ns),
m
maturity vector
y
observed yield vector

See Also

spotrates, spr_ns