esr_loss: Joint Quantile and Expected Shortfall Loss Function
Description
Computes the joint (VaR, ES) loss
Usage
esr_loss(r, q, e, alpha, g1 = 2L, g2 = 1L, return_mean = TRUE)
Arguments
e
Vector of expected shortfalls
return_mean
If TRUE returns the average tick loss, else the individual values
References
Fissler and Ziegel (2016)