Description Usage Arguments Value Examples
View source: R/analytic_merton.R
Calls all analytic formulas for option pricing under Merton's log-normal jump-diffusion
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | analytic_merton(
spot,
strike,
maturity,
rate,
div,
volat,
lambda,
jm,
jv,
what = "call",
output = "greeks",
num_terms = 100
)
|
spot |
the spot price |
strike |
The strike price |
maturity |
the year until expirations |
rate |
the drift rate |
div |
The dividend yield rate |
volat |
the diffusion coefficients of each component (a vector) |
lambda |
the yearly jump-rate |
jm |
the jump mean |
jv |
the jump volatility |
what |
What type of option, put or call |
output |
either "greeks" or "price" |
num_terms |
the number of terms to sum in the Poisson expectation |
data frame
1 2 3 4 5 6 7 8 9 10 11 | spot <- 100
maturity <- 30/252
strike <- 100
rate <- 0.05
div <- 0
volat <- 0.19
lambda <- 5
jm <- 0.01
jv <- 0.03
what <- "call"
print(analytic_merton(spot, strike, maturity, rate, div, volat, lambda, jm, jv, what))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.