Srates(YieldCurve)
Srates()所属R语言包:YieldCurve
Interest rates of the Svensson's model.
利息率的斯文森的模型。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns the interest rates by Svensson's model.
返回利率由斯文森的模型。
用法----------Usage----------
Srates(betaCoeff, lambdaValues, maturity, whichRate = "Forward")
参数----------Arguments----------
参数:betaCoeff
vector or matrix of the beta's coefficients.
向量或矩阵的β系数。
参数:lambdaValues
vector or matrix of values of λ_1 and λ_2.
向量或矩阵的值λ_1和λ_2。
参数:maturity
maturity of the yield curve of which want to return the interest rates.
成熟的要返回的利率收益曲线。
参数:whichRate
which rate want to return: "Spot" or "Forward" rates.
率要返回:“点”或“前进”价格。
Details
详细信息----------Details----------
betaCoeff is a vector or matrix of the four coefficients of the Svensson's model, while lambdaValues is a vector or matrix of two lambda values of Svensson's model.
betaCoeff是一个向量或矩阵的四个系数斯文森的模型,而lambdaValues是的两个斯文森模型的lambda值的向量或矩阵。
值----------Value----------
Return interest rates in matrix object with number of rows equal to nrow(betaCoeff) and number of columns equal to length(maturity).
行等于nrow(betaCoeff)数量等于length(maturity)的列数,返回的利率矩阵对象。
(作者)----------Author(s)----------
Sergio Salvino Guirreri
参考文献----------References----------
Svensson, L.E. (1994), Estimating and Interpreting Forward Interest Rates: Sweden 1992-1994, IMF Working Paper, WP/94/114.
Nelson, C.R., and A.F. Siegel (1987), Parsimonious Modeling of Yield Curve, The Journal of Business, 60, 473-489.
实例----------Examples----------
data(ECBYieldCurve)
tauECB <- c(0.25,0.5,1:30)
Y <- Svensson(ECBYieldCurve[1:10,], tauECB, c(1,4), c(5,8) )
B <- Srates(Y[,1:4], Y[,5:6], tauECB, whichRate="Spot")
plot(tauECB,ECBYieldCurve[10,],main="Fitting Svensson's yield curve", type="o")
lines(tauECB,B[10,], col=2)
legend("topleft",legend=c("observed yield curve","fitted yield curve"),col=c(1,2),lty=1)
grid()
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|