Learn R Programming

Dowd (version 0.12)

KernelVaRNormalKernel: Calculates VaR using normal kernel approach

Description

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

Usage

KernelVaRNormalKernel(Ra, cl, plot = TRUE)

Arguments

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

Value

Scalar VaR

References

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

Examples

Run this code
# VaR for specified confidence level using normal kernel approach
   Ra <- rnorm(30)
   KernelVaRNormalKernel(Ra, .95)

Run the code above in your browser using DataLab