View source: R/loss_functions.R
esr_loss | R Documentation |
Computes the joint (VaR, ES) loss
esr_loss(r, q, e, alpha, g1 = 2L, g2 = 1L, return_mean = TRUE)
r |
Vector of returns |
q |
Vector of quantiles |
e |
Vector of expected shortfalls |
alpha |
Probability level |
g1 |
1, 2, see G1_fun |
g2 |
1, 2, 3, 4, 5, see G2_curly_fun, G2_fun |
return_mean |
If TRUE returns the average tick loss, else the individual values |
Fissler and Ziegel (2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.