Description Usage Arguments Details Value Functions
A set of functions to calculate realized divergence measures and respective confidence intervals based on semimartingale discretisation theory.
1 2 3 4 5 6 7 8 | rDivEngine(rdata, fooStr, pow, makeReturns, align.by, align.period,
marketopen = "08:30:00", marketclose = "15:15:00",
intradaySeasonFun = function(x) 1, ...)
rDivEngineInference(rdata, fooStr, pow, test.size = 0.05, align.by,
align.period, makeReturns, reference.time, year.days = 365,
seconds.per.day = 86400, cl = NULL, spot.vol.series = NULL,
jump.series = NULL, kernel.type = "gaussian", ...)
|
rdata |
an |
fooStr |
character, name of base function (realized measure) for inference. |
pow |
|
makeReturns |
boolean, should be |
align.by |
argument to |
align.period |
argument to |
intradaySeasonFun |
Function. Allows to control for diurnal patterns in volatility whhen calculating estimators with jump truncation. Accepts 1 argument: time in seconds from start of trading day. The default setting returns 1. |
... |
Arguments passed on to |
reference.time |
Time string in format |
spot.vol.series |
xts object: estimated spot volatility, if you don't like built-in methods; time stamps must correspond to time stamps in |
jump.series |
xts object: estimated jump sizes, if you don't like built-in methods; provide jump times and sizes only, a substitute for the rdata series will be created. |
The most important arguments to pass go aggregatePrice are marketopen and marketclose, see documentation therein. The default values are different from our test data set.
There following divergence types are available (see Khajavi, Orlowski, Trojani 2015):
fooStr = 'rDiv' – realized power divergence of log returns with p=pow,
fooStr = 'rUDiv' – realized power divergence, scaled by value at outset of period, p=pow,
fooStr = 'rJSkew' – realized skewness divergence of log returns (jump skewness) around power p=pow
fooStr = 'rUSkew' – realized skewness divergence, scaled by value at outset of period, around power p=pow, (similar to signed realized volaility)
fooStr = 'rJKurt' – realized quarticity divergence of log returns (jump kurtosis) around power p=pow
fooStr = 'rUKurt' – realized quarticity divergence, scaled by value at outset of period, around power p=pow, (similar to realized volaility weighted by divergence of return from outset)
rDivEngine returns an xts object of dimension num.days x length(pow)
rDivEngineInference returns a list with fields rDiv and asy.var; the former contains the output of rDivEngine, the latter contains the confidence interval for estimation error, i.e. for \hat{D}-D.
rDivEngineInference:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.