Calculates VaR using box kernel approach
The output consists of a scalar VaR for specified confidence level.
KernelVaRBoxKernel(Ra, cl, plot = TRUE)
Ra
: Profit and Loss data setcl
: VaR confidence levelplot
: Bool which indicates whether the graph is plotted or notScalar VaR
# VaR for specified confidence level using box kernel approach Ra <- rnorm(30) KernelVaRBoxKernel(Ra, .95)
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
Useful links