Returns the yield-to-maturity for a periodic cash flow stream, such as a bond.
Category: | Financial |
specifies the face value.
Range |
specifies the nominal annual coupon rate, expressed as a fraction.
Range |
specifies the number of coupons per year.
Range | and is an integer |
specifies the number of remaining coupons from settlement date to maturity.
Range | and is an integer |
specifies the time from settlement date to the next coupon as a fraction of the annual basis.
Range |
specifies the price with accrued interest.
Range |
data _null_; y=yieldp(1000,.01,4,14,.165,800); put y; run;The value returned is 0.0775031248.