extract_model_fit_forecast: Extract the numeric array of fitted values with the forecast...

Description Usage Arguments Value Examples

View source: R/par_catch_all.R

Description

Extract the numeric array of fitted values with the forecast added on to the end.

Usage

1
2
3
4
5
6
7
extract_model_fit_forecast(
  x,
  steps = 3,
  xreg = NULL,
  freq = "month",
  num.cores = 2
)

Arguments

x

list of models from par_catch_all

steps

integer of how many steps out you want to forecast

xreg

list of matrix/array of exogenous regressors you want to use to forecast only applicable to certain models

freq

string of characters indicating e.g. "month" for monthly etc

num.cores

integer for the number of cores you want to use

Value

list of numeric arrays with forecasts appended

Examples

1
2
3
4
5
## Not run: 
test <- replicate(5, list(ldeaths))
test_model <- par_time_series_catch(test, num.cores = 12)

## End(Not run)

ryanbieber/Time-Series-Catch-All documentation built on Oct. 13, 2020, 9:59 a.m.