Financial Toolbox    
tr2bonds

Term-structure parameters given Treasury bond parameters

Syntax

Arguments

TreasuryMatrix
Treasury bond parameters. An n-by-5 matrix, where each row describes a Treasury bond. Columns are [CouponRate Maturity Bid Asked AskYield] where
CouponRate
Coupon rate, as a decimal fraction.
Maturity
Maturity date, as a serial date number. Use datenum to convert date strings to serial date numbers.
Bid
Bid price based on $100 face value.
Asked
Asked price based on $100 face value.
AskYield
Asked yield to maturity, as a decimal fraction.
Settle
(Optional) Date string or serial date number of the settlement date for the analysis.

Description

[Bonds, Prices, Yields] = tr2bonds(TreasuryMatrix, Settle)) returns term-structure parameters (bond information, prices, and yields) sorted by ascending maturity date, given Treasury bond parameters. The formats of the output matrix and vectors meet requirements for input to the zbtprice and zbtyield zero-curve bootstrapping functions.

Bonds
Coupon bond information. An n-by-6 matrix where each row describes a bond. Columns are [Maturity CouponRate Face Period Basis EndMonthRule] where:
Maturity
Maturity date of the bond, as a serial date number. Use datestr to convert serial date numbers to date strings.
CouponRate
Coupon rate of the bond, as a decimal fraction.
Face
Redemption or face value of the bond, always 100.
Period
Coupons per year of the bond, always 2.
Basis
Day-count basis of the bond, always 0 (actual/actual).
EndMonthRule
End-of-month flag, always 1, meaning that a bond's coupon payment date is always the last day of the month.
Prices
Prices. A column vector containing the price of each bond in bonds, respectively. The number of rows (n) matches the number of rows in bonds.
Yields
Yields. A column vector containing the yield to maturity of each bond in bonds, respectively. The number of rows (n) matches the number of rows in bonds. If Settle is input, Yields is computed as a semi-annual yield to maturity. If Settle is not input, the quoted input yields will be used.

Examples

Given published Treasury bond market parameters for December 22, 1997

Execute the function.

(Example output has been formatted for readability.)

See Also

tbl2bond, zbtprice, zbtyield, and other functions for Term Structure of Interest Rates


  today ugarch