Creating Interest-Rate Curve Objects
Depending on your data and purpose for analysis, you can create an interest-rate curve object by using anIRDataCurve
orIRFunctionCurve
object.
To create anIRDataCurve
object, you can:
Use
IRDataCurve
to create anIRDataCurve
对象使用向量与interpo日期和数据lation methods.Use the object function
bootstrap
using market instruments.
For more information on creating anIRDataCurve
object, seeCreating an IRDataCurve Object.
Using anIRDataCurve
object, you can use the following functions to determine:
Forward rate curve —
getForwardRates
Zero rate curve —
getZeroRates
Discount rate curve —
getDiscountFactors
Par yield curve —
getParYields
Alternatively, to create anIRFunctionCurve
object, you can:
Use
IRFunctionCurve
to create anIRFunctionCurve
object and directly specify a function handle.Use
IRFunctionCurve
object functions:fitNelsonSiegel
fits aFitting IRFunctionCurve Object Using Nelson-Siegel Methodto market data for bonds.fitSvensson
fits aFitting IRFunctionCurve Object Using Svensson Methodto market data for bonds.fitSmoothingSpline
fits aFitting IRFunctionCurve Object Using Smoothing Spline Methodfunction to market data for bonds.fitFunction
custom fits an interest-rate curve object to market data for bonds.
Using anIRFunctionCurve
object, you can use the following functions to determine:
Forward rate curve —
getForwardRates
Zero rate curve —
getZeroRates
Discount rate curve —
getDiscountFactors
Par yield curve —
getParYields
In addition, you can convert anIRDataCurve
object orIRFunctionCurve
object to aRateSpec
structure. For more information, seeConverting an IRDataCurve or IRFunctionCurve Object.