YIELDP Function
Returns the yield-to-maturity for a periodic cash flow stream, such as a bond.
| Categories: | Financial |
| CAS |
Syntax
Required Arguments
K
k0
Details
Example
In the following example,
the YIELDP function returns the yield-to-maturity of a bond that has
a face value of 1000, an annual coupon rate of 0.01, 4 coupons per
year, and 14 remaining coupons. The time from settlement date to next
coupon date is 0.165, and the price with accrued interest is 800.
data _null_; y=yieldp(1000, .01, 4, 14, .165, 800); put y; run;
SAS writes the following
output to the log:
0.0775031248
Copyright © SAS Institute Inc. All Rights Reserved.
Last updated: March 16, 2017