objfct_ns: Nelson/Siegel Loss Function for Yields

Description Usage Arguments See Also

Description

Calculates the sum of the squared spot rate error.

Usage

1
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


changshun/termstrc documentation built on May 13, 2019, 3:24 p.m.