| Financial Toolbox | Search  Help Desk |
| yldoddf | Examples See Also |
Yield of security with odd first period.
Syntax
yld = yldoddf(sd, md, id, fd, rv, price, cpn, per, basis, maxiter) yld = yldoddf(sd, md, id, fd, rv, price, cpn, per, basis) yld = yldoddf(sd, md, id, fd, rv, price, cpn, per) yld = yldoddf(sd, md, id, fd, rv, price, cpn)
Arguments
sdsd must be earlier than or equal to md.mdidfdrvpricecpnper2.basis0 = actual/actual (default), 1 = 30/360,2 = actual/360, 3 = actual/365.maxiteryld. Default = 50.Description
yld = yldoddf(sd, md, id, fd, rv, price, cpn, per, basis, maxiter)
returns the yield of a security with an odd first period and the settlement date in the first period.
Example
Using the data:sd = '11/11/1992'; md = '03/01/2005'; id = '10/15/1992'; fd = '03/01/1993'; rv = 100; price = 113.60; cpn = 0.0785; per = 2; basis = 0; yld = yldoddf(sd, md, id, fd, rv, price, cpn, per, basis)returns
yld =
0.0625 (or 6.25%)
See Also
acrubond, cfdates, prbond, proddf, yldbond, yldmat, yldoddfl,
yldoddl, yldtbill
Reference
Mayle, Standard Securities Calculation Methods, Volumes I-II, 3rd edition. Formulas 8, 9.