simulator.RdThis function allows to obtain predictive simulations from any forecasting function.
simulator(
FUN,
y,
h,
level = 95,
method = c("block-bootstrap", "surrogate", "kde", "bootstrap", "fitdistr", "meboot"),
nsim = 100L,
block_size = 5,
seed = 123L,
B = NULL,
...
)A forecasting function.
A time series (ts object or vector).
Forecasting horizon.
Confidence level.
Method to be used for the simulation of in-sample residuals.
Number of simulations.
Block size for block-bootstrap.
Seed for reproducibility.
Alias for nsim
Additional arguments to be passed to the forecasting function.
An object of class forecast, with a slot sims