The value at risk coverage and duration tests of Kupiec (1995) and Christoffersen and Pelletier (1998,2004), and expected shortfall test of Du and Escanciano (2017).
var_test(
actual,
forecast,
x,
alpha,
lags = 1,
boot = FALSE,
n_boot = 2000,
...
)
An object of class “tstest.vares” which has a print and as_flextable method.
a series representing the actual value of the series in the out of sample period.
the forecast values of the series at the quantile given by alpha (the forecast value at risk).
the probability integral transformed series (pit).
the quantile level used to calculate the forecast value at risk.
the numbers of lags to use for the conditional shortfall test.
whether to use bootstrap simulation for estimating the p-values of the conditional shortfall test.
the bootstrap replications used to calculate the p-value.
not currently used.
This is a condensed table of both the var_cp_test
and
shortfall_de_test
.
Kupiec1995tstests
Christoffersen1998tstests
Christoffersen2004tstests
Du2017tstests