prediction_info | R Documentation |
The object created contains a forecast and, optionally, prediction intervals for the forecast.
prediction_info(name, forecast, ...)
name |
a character indicating the name of the method used to forecast. |
forecast |
a time series of class |
... |
prediction intervals for the forecast. These prediction intervals
must have been built with the |
an object of class pred_info
. A list with the information supplied
to the function.
pi_info()
for how to create prediction intervals.
if (require("forecast")) {
time_series <- ts(rnorm(40))
f <- meanf(time_series, level = 95)
info <- prediction_info("mean", f$mean, pi_info(95, f$lower, f$upper))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.