Description Usage Arguments Details Value
Compute European and American option prices under three basic models: Black-Scholes, and a log-normal mixture. Use the PIDE solver to price under Merton's jump-diffusion.
1 2 3 4 5 6 7 8 9 10 | pricer_pde(
strikes,
expiries,
spot,
model,
type = "call",
N = 100,
M = 100,
american = TRUE
)
|
strikes |
vector of strike prices |
expiries |
vector of maturities, in trading years |
spot |
the current spot price of the underlying |
model |
the dynamics defining the model, see details |
type |
the type of option to price |
N |
time-resolution |
M |
space-resolution |
american |
boolean for American options (TRUE) or European options |
The argument model
must be a named list of
name
either "gbm" or "mixture"
param
the parameters defining the above model.
For "gbm", param
should be a vector of the risk-free rate,
volatility, and the same with the mean rate of jumps and jump parameters. For
"mixture" it must be a matrix of probabilities, risk-neutral rate, and volatilities.
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.