Learn R Programming

Dowd (version 0.12)

HSVaRESPlot2DCl: Plots historical simulation VaR and ES against confidence level

Description

Function plots the historical simulation VaR and ES of a portfolio against confidence level, for specified range of confidence level and holding period implied by data frequency.

Usage

HSVaRESPlot2DCl(Ra, cl)

Arguments

Ra
Vector of daily P/L data
cl
Vectof of VaR confidence levels

References

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

Examples

Run this code
# Plots historical simulation VaR and ES against confidence level
   Ra <- rnorm(100)
   cl <- seq(.90, .99, .01)
   HSVaRESPlot2DCl(Ra, cl)

Run the code above in your browser using DataLab