Description Usage Arguments Author(s) References Examples
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.
1 | HSVaRESPlot2DCl(Ra, cl)
|
Ra |
Vector of daily P/L data |
cl |
Vectof of VaR confidence levels |
Dinesh Acharya
Dowd, K. Measuring Market Risk, Wiley, 2007.
1 2 3 4 | # Plots historical simulation VaR and ES against confidence level
Ra <- rnorm(100)
cl <- seq(.90, .99, .01)
HSVaRESPlot2DCl(Ra, cl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.