Returns the convexity for an enumerated cash flow.
specifies the effective per-period yield-to-maturity, expressed as a fraction.
specifies the frequency of cash flows per period.
specifies a list of cash flows.
data _null_; c=convx(1/20,1,.33,.44,.55,.49,.50,.22,.4,.8,.01,.36,.2,.4); put c; run;