GARKHPTPRC Function
Calculates put prices for European options on stocks, based on the Garman-Kohlhagen model.
| Category: | Financial |
|---|---|
| Returned data type: | DOUBLE |
Table of Contents
Syntax
Required Arguments
E
is a nonmissing, positive value that specifies the exercise price.
| Requirement | Specify E and S in the same units. |
|---|---|
| Data type | DOUBLE |
t
is a nonmissing value that specifies the time to maturity, in years.
| Data type | DOUBLE |
|---|
S
is a nonmissing, positive value that specifies the spot currency price.
| Requirement | Specify S and E in the same units. |
|---|---|
| Data type | DOUBLE |
Rd
is a nonmissing, positive fraction that specifies the risk-free domestic interest rate for period t.
| Requirement | Specify a value for Rd for the same time period as the unit of t. |
|---|---|
| Data type | DOUBLE |
Rf
is a nonmissing, positive fraction that specifies the risk-free foreign interest rate for period t.
| Requirement | Specify a value for Rt for the same time period as the unit of t. |
|---|---|
| Data type | DOUBLE |
sigma
is a nonmissing, positive fraction that specifies the volatility of the currency rate.
| Data type | DOUBLE |
|---|
Details
The GARKHPTPRC function calculates the put prices for European options on stocks, based on the Garman-Kohlhagen model. The function is based on the following relationship:
Arguments
- S
-
specifies the spot currency price.
- E
-
specifies the exercise price of the option.
- t
-
specifies the time to expiration, in years.
- Rd
-
specifies the risk-free domestic interest rate for period t.
- Rf
-
specifies the risk-free foreign interest rate for period t.
The following arguments apply to the preceding equation:
For the special case of t=0, the following equation is true:
For information about the basics of pricing, see Using Pricing Functions in SAS Functions and CALL Routines: Reference.
Comparisons
The GARKHPTPRC function calculates the put prices for European options on stocks, based on the Garman-Kohlhagen model. The GARKHCLPRC function calculates the call prices for European options on stocks, based on the Garman-Kohlhagen model. These functions return a scalar value.
Example
The following program illustrates the GARKHPTPRC function:
proc ds2;
data _null_;
method run();
a=garkhptprc(50, .7, 55, .05, .04, .2);
b=garkhptprc(32, .3, 33, .05, .03, .3);
put a=;
put b=;
end;
enddata;
run;
quit;
SAS writes the following output to the log.
1.4050880944848 1.56473205137371
See Also
-
Functions:



