Compute the Expected Shortfall
function to compute the alpha-Expected Shortfall of a vector.
expectedShortfall(x, alpha = 0.01, sup = F, ...)
x |
a numeric vector. The vector from which to compute the expected shortfall. |
alpha |
a numeric value. The alpha-Expected Shortfall, must take values
between 0 and 1. Please note that |
sup |
a logical value. If |
... |
additional parameters. |
a numeric value. The expected shortfall.
Please consider that we include the boundary value into the empirical mean estimation.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.