Factor Loadings for Nelson--Siegel and Nelson--Siegel--Svensson
Factor Loadings for Nelson--Siegel and Nelson--Siegel--Svensson
Computes the factor loadings for Nelson--Siegel (NS ) and Nelson--Siegel--Svensson (NSS ) model for given lambda values.
NSf(lambda, tm)NSSf(lambda1, lambda2, tm)
Arguments
lambda: the lambda parameter of the NS model (a scalar)
lambda1: the lambda1 parameter of the NSS model (a scalar)
lambda2: the lambda2 parameter of the NSS model (a scalar)
tm: a numeric vector with times-to-payment/maturity
Details
The function computes the factor loadings for given lambda parameters. Checking the correlation between these factor loadings can help to set reasonable lambda values for the NS /NSS models.
Returns
For NS , a matrix with length(tm) rows and three columns. For NSS , a matrix with length(tm) rows and four columns.
Gilli, M., Maringer, D. and Schumann, E. (2019) Numerical Methods and Optimization in Finance. 2nd edition. Elsevier. tools:::Rd_expr_doi("10.1016/C2017-0-01621-X")