Learn R Programming

Dowd (version 0.12)

HSESFigure: Figure of Historical SImulation VaR and ES and histogram of L/P

Description

Plots figure showing the historical simulation VaR and ES and histogram of L/P for specified confidence level and holding period implied by data frequency.

Usage

HSESFigure(Ra, cl)

Arguments

Ra
Vector of profit loss data
cl
VaR confidence level

References

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

Examples

Run this code
# Plots figure showing VaR and histogram of P/L data
   Ra <- rnorm(100)
   HSESFigure(Ra, .95)

Run the code above in your browser using DataLab