powered by
The simple and general conditional calibration backtests of Nolde & Ziegel (2007).
cc_backtest(r, q, e, s = NULL, alpha, hommel = TRUE)
Returns a list with the following components:
pvalue_twosided_simple
pvalue_onesided_simple
pvalue_twosided_general
pvalue_onesided_general
A vector of returns.
A vector of Value-at-Risk forecasts.
A vector of Expected Shortfall forecasts.
A vector of volatility forecasts.
Scalar probability level in (0, 1).
If TRUE, use Hommels correction, otherwise use the classical Bonferroni correction.
Nolde & Ziegel (2007) tools:::Rd_expr_doi("10.1214/17-AOAS1041")
data(risk_forecasts) r <- risk_forecasts$r q <- risk_forecasts$q e <- risk_forecasts$e s <- risk_forecasts$s cc_backtest(r = r, q = q, e = e, s = s, alpha = 0.025)
Run the code above in your browser using DataLab