Learn R Programming

Dowd (version 0.12)

KernelESEpanechinikovKernel: Calculates ES using Epanechinikov kernel approach

Description

The output consists of a scalar ES for specified confidence level.

Usage

KernelESEpanechinikovKernel(Ra, cl, plot = TRUE)

Arguments

Ra
Profit and Loss data set
cl
ES confidence level
plot
Bool, plots cdf if true

Value

Scalar ES

References

Dowd, K. Measuring Market Risk, Wiley, 2007.

Examples

Run this code
# ES for specified confidence level using Epanechinikov kernel approach
   Ra <- rnorm(30)
   KernelESEpanechinikovKernel(Ra, .95)

Run the code above in your browser using DataLab