add_consistency {triptych} | R Documentation |
Adding consistency regions for reliability curves
Description
Consistency regions are created under the assumption that the forecasts are calibrated. A reliability curve that significantly violates the consistency region indicates a miscalibrated forecast.
Usage
add_consistency(x, level = 0.9, method = "resampling_Bernoulli", ...)
Arguments
x |
An object to which a consistency region should be added. |
level |
A single value for the level of confidence. |
method |
A string that gives the name of method to generate the consistency regions. Currently, only: "resampling_Bernoulli". |
... |
Additional arguments passed to methods. |
Value
The object given to x
, but with information about the consistency regions.
This information can be accessed conveniently by using regions()
on the
reliability curve component.
See Also
Examples
data(ex_binary, package = "triptych")
tr <- triptych(ex_binary) |>
dplyr::slice(1, 9)
# Bootstrap resampling is expensive
# (the number of bootstrap samples is small to keep execution times short)
tr <- add_consistency(tr, level = 0.9, method = "resampling_Bernoulli", n_boot = 20)
regions(tr$reliability)
[Package triptych version 0.1.3 Index]