SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3

YIELDP Function

Returns the yield-to-maturity for a periodic cash flow stream, such as a bond

Category: Financial

Syntax

YIELDP ( A,c,n,K,k ,p )

Arguments

A

c

n

K

k

p

Details

The YIELDP function is based on the relationship

click to expand

where

The YIELDP function solves for y .

Examples

The following example demonstrates the use of YIELDP with a face value of 1000, an annual coupon rate of 0.01, 4 coupons per year, 14 remaining coupons, time from settlement date to next coupon is 0.165, and the price with accrued interest is 800.

data _null_; y=yieldp(1000,.01,4,14,.165,800); put y; run;

The value returned is 0.0775.

Категории