CONVX Function


CONVX Function

Returns the convexity for an enumerated cash flow

Category: Financial

Syntax

CONVX ( y,f,c(1), ... ,c(k) )

Arguments

y

  • specifies the effective per-period yield-to-maturity , expressed as a fraction.

  • Range: 0 < y < 1

f

  • specifies the frequency of cash flows per period.

  • Range: f > 0

c(1), ... ,c(k)

  • specifies a list of cash flows.

Details

The CONVX function returns the value

click to expand

where

click to expand

Examples

 data _null_;  c=convx(1/20,1,.33,.44,.55,.49,.50,.22,.4,.8,.01,.36,.2,.4);  put c;  run; 

The value returned is 42.3778.




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net