Creating Interest-Rate Curve Objects
Depending on your data and purpose for analysis, you can create an interest-rate curve object
by using an IRDataCurve or IRFunctionCurve object.
To create an IRDataCurve object, you can:
Use
IRDataCurveto create anIRDataCurveobject using vector of dates and data with interpolation methods.Use the object function
bootstrapusing market instruments.
For more information on creating an IRDataCurve object,
see Creating an IRDataCurve Object.
Using an IRDataCurve object, you can use the
following functions to determine:
Forward rate curve —
getForwardRatesZero rate curve —
getZeroRatesDiscount rate curve —
getDiscountFactorsPar yield curve —
getParYields
Alternatively, to create an IRFunctionCurve object,
you can:
Use
IRFunctionCurveto create anIRFunctionCurveobject and directly specify a function handle.Use
IRFunctionCurveobject functions:fitNelsonSiegelfits a Fitting IRFunctionCurve Object Using Nelson-Siegel Method to market data for bonds.fitSvenssonfits a Fitting IRFunctionCurve Object Using Svensson Method to market data for bonds.fitSmoothingSplinefits a Fitting IRFunctionCurve Object Using Smoothing Spline Method function to market data for bonds.fitFunctioncustom fits an interest-rate curve object to market data for bonds.
Using an IRFunctionCurve object, you can use the following functions to determine:
Forward rate curve —
getForwardRatesZero rate curve —
getZeroRatesDiscount rate curve —
getDiscountFactorsPar yield curve —
getParYields
In addition, you can convert an IRDataCurve object or
IRFunctionCurve object to a RateSpec
structure. For more information, see Converting an IRDataCurve or IRFunctionCurve Object.