save_fc_forecast: Save forecasts (for forecast objects)

Description Usage Arguments Value

Description

This function extracts the estimates of the model parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
save_fc_forecast(
  forecast_obj,
  raw_data,
  sample_split,
  data_dir,
  model_name,
  time_id = base::Sys.time(),
  period_iter = NULL,
  model_args = NULL,
  exclude_PI = FALSE,
  ...
)

Arguments

forecast_obj

A 'forecast' object

raw_data

A univariate ts or xts object, original (i.e. unprocessed) time series data

sample_split

A list, the sample split

data_dir

A string, directory to which results can be saved as text files

model_name

A string, name of the forecasting model

time_id

A POSIXct, created with Sys.time and appended to results

period_iter

A string, period identifier of format: 'period' + '_' + iter

model_args

A list, optional arguments to pass to the models

exclude_PI

A boolean, exclude prediction intervals in results

...

Additional arguments to be passed to the function

Value

A data frame


xavierkamp/tsForecastR documentation built on Feb. 1, 2020, 10:16 a.m.