Download Financial Toolbox User's Guide
Transcript
pyld2zero Purpose 4pyld2zero Zero curve given a par yield curve Syntax [ZeroRates, CurveDates] = pyld2zero(ParRates, CurveDates, Settle, OutputCompounding, OutputBasis, InputCompounding, InputBasis, MaxIterations) Arguments ParRates Column vector of annualized implied par yield rates, as decimal fractions. (Par yields = coupon rates.) In aggregate, the yield rates in ParRates constitute an implied par yield curve for the investment horizon represented by CurveDates. CurveDates Column vector of maturity dates (as serial date numbers) that correspond to the par rates. Settle A serial date number that is the common settlement date for the par rates. OutputCompounding (Optional) Output compounding. A scalar that sets the compounding frequency per year for annualizing the output zero rates. Allowed values are: 1 annual compounding 2 semi-annual compounding (default) 3 compounding three times per year 4 quarterly compounding 6 bimonthly compounding 12 monthly compounding 365 daily compounding -1 OutputBasis continuous compounding (Optional) Output day-count basis for annualizing the output zero rates. Allowed values are: 0 actual/actual (default) 1 30/360 2 actual/360 4-219