getsimulations: Obtain simulations (when relevant) from a selected time...

View source: R/getsimulations.R

getsimulationsR Documentation

Obtain simulations (when relevant) from a selected time series

Description

Obtain simulations (when relevant) from a selected time series

Usage

getsimulations(obj, selected_series, transpose = FALSE)

Arguments

obj

result from ridge2f (multivariate time series forecast with simulations)

selected_series

name of the time series selected

transpose

return a transposed time series

Examples


require(fpp)

obj <- ahead::ridge2f(fpp::insurance, h = 7,
                      type_pi = "bootstrap", B = 5)
print(getsimulations(obj, selected_series = "TV.advert"))
print(getsimulations(obj, selected_series = "Quotes"))
print(getsimulations(obj, selected_series = "TV.advert", transpose = TRUE))
print(getsimulations(obj, selected_series = "Quotes", transpose = TRUE))


Techtonique/ahead documentation built on Nov. 24, 2024, 10:33 a.m.