save_fc_bsts: Save forecasts (for bsts.prediction 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
save_fc_bsts(
  bsts_obj,
  raw_data,
  sample_split,
  data_dir,
  model_name,
  time_id = base::Sys.time(),
  period_iter = NULL,
  model_args = NULL,
  ...
)

Arguments

bsts_obj

A bsts.prediction 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

...

Additional arguments to be passed to the function

Value

A data frame


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