ecd.ogf | R Documentation |
Option generating function (OGF) of ecd.
For call, it is integration of (e^z-e^k) P(z) for z
from k
to Inf
.
For put, it is integration of (e^k-e^z) P(z) for z
from -Inf
to k
.
ecd.ogf(object, k, otype = "c", unit.sigma = FALSE, verbose = FALSE)
object |
an object of ecd class |
k |
a numeric vector of log-strike |
otype |
character, specifying option type: |
unit.sigma |
logical, transforming to unit sigma to achieve greater stability. |
verbose |
logical, display timing information, for debugging purpose. |
The option price normalized by underlying
Stephen H. Lihn
d <- ecd(0, 0, sigma=0.01) k <- seq(-0.1, 0.1, by=0.01) ecd.ogf(d, k, "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.