Usage
nelson_estim(group,
bonddata,
matrange = "all",
method = "Nelson/Siegel",
fit = "prices",
weights = "none",
startparam, control = list(eval.max = 1000))
Arguments
group
vector defining the group of bonds used for the estimation,\newlinee.g. c("GERMANY","AUSTRIA")
bonddata
a dataset of bonds in list format
matrange
use "all"
for no restrictions, or restrict the
maturity range used for the estimation with c(lower,upper)
method
"Nelson/Siegel"
or "Svensson"
fit
use "prices"
("yields"
) for minimising the squared price (yield) error
weights
If a weighted minimisation of the squared price deviation is required, use "duration"
, otherwise "none"
startparam
matrix of start parameters, for the Nelson/Siegel (Svensson) method 4 (6) parameters for each each group are required (one row per group).
control
list of control parameters for the function nlminb