powered by
Tests whether the mean of the exceedance residuals, respectively the mean of the standardized exceedance residuals is zero.
er_backtest(r, q, e, s = NULL, B = 1000)
Returns a list with the following components:
pvalue_twosided_simple
pvalue_onesided_simple
pvalue_twosided_standardized
pvalue_onesided_standardized
A vector of returns.
A vector of Value-at-Risk forecasts.
A vector of Expected Shortfall forecasts.
A vector of volatility forecasts.
Number of bootstrap iterations
McNeil & Frey (2000) tools:::Rd_expr_doi("10.1016/S0927-5398(00)00012-8")
data(risk_forecasts) r <- risk_forecasts$r q <- risk_forecasts$q e <- risk_forecasts$e s <- risk_forecasts$s er_backtest(r = r, q = q, e = e, s = s)
Run the code above in your browser using DataLab