Calculates ES using Epanechinikov kernel approach
The output consists of a scalar ES for specified confidence level.
KernelESEpanechinikovKernel(Ra, cl, plot = TRUE)
Ra
: Profit and Loss data setcl
: ES confidence levelplot
: Bool, plots cdf if trueScalar ES
# ES for specified confidence level using Epanechinikov kernel approach Ra <- rnorm(30) KernelESEpanechinikovKernel(Ra, .95)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
Useful links