pi_info | R Documentation |
The object created represents a prediction interval for the forecast of the future values of a time series.
pi_info(level, lpi, upi)
level |
a number in the interval (0, 100) indicating the level of the prediction interval. |
lpi |
a time series of class |
upi |
a time series of class |
An object of class pi_info
. It is a list containing all the
information supplied to the function.
prediction_info()
which uses this function to specify prediction
intervals.
if (require("forecast")) {
time_series <- ts(rnorm(40))
f <- meanf(time_series, level = 95)
info <- 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.