Description Usage Arguments Value Author(s) Examples
Specify parameters of an option
1 2 3 | optionSpec(style = c("european", "american"), type = c("call", "put"),
S0 = 100, K = 100, maturity = 1, r = 0.05, volatility = 0.2,
q = 0)
|
style |
style of the option, e.g. european, american, etc. |
type |
type of the option; "call" or "put" |
S0 |
underlying asset price |
K |
strike price |
maturity |
the life of the option, measured in years |
r |
risk free rate |
volatility |
volatility of the underlying asset price |
q |
continuous dividend yield rate for options on stocks or stock indices paying a dividend. Also the foreign risk free rate for options on currencies |
an object of class "option" with the parameters that specify the option
Ross Bennett
1 2 | am.call <- optionSpec(style="american", type="call")
euro.call <- optionSpec(style="european", type="call", S0=30, K=30, maturity=1, r=0.05, volatility=0.25, q=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.