Description Usage Arguments Value
Estimate parameters for Merton's jump-diffusion model given a set of variates, using MLE and R's basic optim
function.
1 2 3 4 5 6 7 8 | merton_mle(
log_returns,
thresh_hold = 0.02,
tn = 1,
time_step = 1/252,
compensate = FALSE,
direction = "both"
)
|
log_returns |
log returns of data |
thresh_hold |
threshhold for jump size |
tn |
the length in years of period the data was observed in |
time_step |
time step of data, for real stock data use 1/252, for simulations use |
compensate |
whether to treat the mean as compensated by the jump-drift or not |
direction |
"down", "up" or "both" for direction of jumps to estimate |
list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.