conformalize.Rd
This function allows to conformalize any forecasting function.
conformalize(
FUN,
y,
h,
level = 95,
method = c("block-bootstrap", "surrogate", "kde", "bootstrap"),
nsim = 100L,
block_size = 5,
seed = 123L,
...
)
A forecasting function.
A time series (ts
object or vector).
Forecasting horizon.
Confidence level.
Method to be used for conformalization (simulation of calibrated residuals).
Number of simulations.
Block size for block-bootstrap.
Seed for reproducibility.
Additional arguments to be passed to the forecasting function.
An object of class forecast
.