Calculates ES using triangle kernel approach
The output consists of a scalar ES for specified confidence level.
KernelESTriangleKernel(Ra, cl)
Ra
: Profit and Loss data setcl
: VaR confidence levelScalar VaR
# VaR for specified confidence level using triangle kernel approach Ra <- rnorm(30) KernelESTriangleKernel(Ra, .95)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
Useful links