View source: R/heston-fitting.R
hestonParticleFilter | R Documentation |
Sequential importance (re)-sampling implementation of the particle method to estimate the hidden volatility of a Heston model.
hestonParticleFilter(y, param, N, nthresh, h = 1/252)
y |
time-series of log-price increments |
param |
vector of parameters defining Heston dynamics, see details |
N |
number of particles to use |
nthresh |
threshold of particles to use |
h |
the time-step to use |
The argument param
must be a vector whose entries represent in order,
(\kappa, \theta, \xi, \mu)
, the mean-reversion speed, mean-reversion level, the vol-of-vol,
and mean-drift of the stock price. The algorithm's details are on Wikipedia.
vector/numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.