Financial Toolbox
  Go to function:
    Search    Help Desk 
tr2bonds    Examples   See Also

Term-structure parameters given Treasury bond parameters.

Syntax

Arguments

tbond
Treasury bond parameters. An N-by-5 matrix where each row describes a Treasury bond. N is the number of Treasury bonds.
Columns are [cpn md bidp askp askytm] where
cpn
Coupon rate, as a decimal fraction.
md
Maturity date, as a serial date number. Use datenum to convert date strings to serial date numbers.
bidp
Bid price based on $100 face value.
askp
Asked price based on $100 face value.
askytm
Asked yield to maturity, as a decimal fraction.

Description

[bonds, p, y] = tr2bonds(tbond) returns term-structure parameters -- bond information, prices, and yields -- sorted by ascending maturity date md, 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. N is the number of bonds.
Columns are [md cpn rv per basis eom] where
md
Maturity date of the bond, as a serial date number. Use datestr to convert serial date numbers to date strings.
cpn
Coupon rate of the bond, as a decimal fraction.
rv
Redemption or face value of the bond, always 100.
per
Coupons per year of the bond, always 2.
basis
Day-count basis of the bond, always 0 (actual/actual).
eom
End-of-month flag, always 1, meaning that a bond's coupon payment date is always the last day of the month.
p
Prices. An N-by-1 vector containing the price of each bond in bonds, respectively. The number of rows (N) matches the number of rows in bonds.
y
Yields. An N-by-1 vector containing the yield to maturity of each bond in bonds, respectively. The number of rows (N) matches the number of rows in bonds.

Example

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

[ Previous | Help Desk | Next ]