backtest_all | R Documentation |
Exact UC/IND/CC back‑tests in one call
backtest_all(x, alpha = 0.05, sig = 0.05, prune_threshold = 1e-15)
x |
0/1 exception series. |
alpha |
Exception probability. |
sig |
Significance level (default |
prune_threshold |
Passed to the dynamic programming engine. |
An object of class "ExactVaRBacktestAll"
(a named list) with components:
uc
, ind
, cc
(each a list with stat
, pval
, reject
),
and scalars sig
(significance level), alpha
(model exception probability),
n
(sample size).
set.seed(1)
x <- rbinom(300, 1, 0.02)
backtest_all(x, alpha = 0.02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.