Description Usage Arguments Details Value Author(s) See Also
This function constructs 95% predictive intervals using bootstrapping. The bootstrapping process is done using block bootstrapping, in order to account for serial correlation in the time series data. The predictive intervals then can be visualized with plot.BtInterval
function.
1 | bt.interval(.data = NULL, boot = 100, forecast = "model")
|
.data |
an object of class "Maeforecast" returned from |
boot |
number of bootstrapped versions to generate. This cannot be too small in order for the predictive intervals to be meaningful. Default is set to be |
forecast |
whether the original point forecasts ( |
This function automatically extracts the model information from the argument .data
, including model type, forecasting window, window size, forecasting horizon, and so on. Users will only have to indicate the desirable number of bootstrapped versions to generate, and the function will take care of the rest.
This function returns an object of class "BtInterval" that contains the following components
Intervals |
a 3-column matrix that contains the lower bound, point forecasts and the upper bound. |
Data |
the original data matrix used in the model. |
Model |
the original model information. |
Bootstrapped |
all bootstrapped forecasts |
Zehua Wu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.