cc_backtest {esback}R Documentation

Conditional Calibration Backtest

Description

The simple and general conditional calibration backtests of Nolde & Ziegel (2007).

Usage

cc_backtest(r, q, e, s = NULL, alpha, hommel = TRUE)

Arguments

r

A vector of returns.

q

A vector of Value-at-Risk forecasts.

e

A vector of Expected Shortfall forecasts.

s

A vector of volatility forecasts.

alpha

Scalar probability level in (0, 1).

hommel

If TRUE, use Hommels correction, otherwise use the classical Bonferroni correction.

Value

Returns a list with the following components:

References

Nolde & Ziegel (2007) doi:10.1214/17-AOAS1041

Examples

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)

[Package esback version 0.3.1 Index]