# NOT RUN {
# simple time series
A = c(1:100) + rnorm(100)
date = seq.Date(from = as.Date('2000-01-01'), by = 'month', length.out = 100)
Data = data.frame(date = date, A)
# estiamte univariate forecasts
forecast.uni =
forecast_univariate(
Data = Data,
forecast.dates = tail(Data$date,5),
method = c('naive','auto.arima', 'ets'),
horizon = 1,
recursive = FALSE,
# information set
rolling.window = NA,
freq = 'month',
# data prep
outlier.clean = TRUE,
impute.missing = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab