Murphy Diagrams for VaR and Expected Shortfall
1 2 3 4 5 6 7 |
TSfc |
Matrix containing forecasts and realizations. First two columns contain VaR/ES forecasts from method A; cols 3-4 contain VaR/ES forecasts from method B; col 5 contains realizations. |
alpha |
scalar, level of VaR/ES |
plot_nr |
Either 1 (first elementary score) or 2 (second elementary score) |
labels |
Vector of labels (set to NULL to omit labels) |
grid |
Either NULL (to use grid at all data points) or numeric vector of customized grid points. |
legend_loc |
Location of legend |
murphy_cols |
Colors to be used for first plot |
cex_gen |
Font size |
... |
other plotting parameters |
HAC_lags |
Truncation lag for Newey-West variance estimator (needed for confidence bands) |
conf_level |
Level of confidence bands |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.