make_ts_models() is a Make function that creates a new R object. Specifically, this function implements an algorithm to make time series models. The function returns Time series models (an output object of multiple potential types).
Usage
make_ts_models(
data_xx,
approximation_xx = NULL,
collapse_1L_lgl = T,
cumulatives_chr = character(0),
fill_gaps_1L_lgl = FALSE,
frequency_1L_chr = c("daily", "weekly", "monthly", "quarterly", "yearly"),
index_1L_chr = character(0),
join_to_args_ls = make_tfmn_args_ls(),
key_vars_chr = character(0),
key_totals_ls = NULL,
metrics_chr = make_metric_vars(),
models_chr = c("Mean", "Naïve", "Seasonal naïve", "Drift", "Trend", "LMTS", "ETS",
"ARIMA", "NNTEAR", "Prophet", "Reg_ARIMA", "Reg_Prophet", "Reg_TSLM"),
model_type_1L_chr = "multiplicative",
order_1L_int = 2,
period_1L_int = 12,
predictors_chr = character(0),
prefix_1L_chr = "Cumulative",
stepwise_1L_lgl = TRUE,
terms_1L_chr = character(0),
terms_ls = NULL,
test_1L_int = integer(0),
type_1L_chr = c("totals", "key"),
what_1L_chr = character(0)
)
Arguments
- data_xx
Data (an output object of multiple potential types)
- approximation_xx
Approximation (an output object of multiple potential types), Default: NULL
- collapse_1L_lgl
Collapse (a logical vector of length one), Default: T
- cumulatives_chr
Cumulatives (a character vector), Default: character(0)
- fill_gaps_1L_lgl
Fill gaps (a logical vector of length one), Default: FALSE
- frequency_1L_chr
Frequency (a character vector of length one), Default: c("daily", "weekly", "monthly", "quarterly", "yearly")
- index_1L_chr
Index (a character vector of length one), Default: character(0)
- join_to_args_ls
Join to arguments (a list), Default: make_tfmn_args_ls()
- key_vars_chr
Key variables (a character vector), Default: character(0)
- key_totals_ls
Key totals (a list), Default: NULL
- metrics_chr
Metrics (a character vector), Default: make_metric_vars()
- models_chr
Models (a character vector), Default: c("Mean", "Naïve", "Seasonal naïve", "Drift", "Trend", "LMTS", "ETS", "ARIMA", "NNTEAR", "Prophet", "Reg_ARIMA", "Reg_Prophet", "Reg_TSLM")
- model_type_1L_chr
Model type (a character vector of length one), Default: 'multiplicative'
- order_1L_int
Order (an integer vector of length one), Default: 2
- period_1L_int
Period (an integer vector of length one), Default: 12
- predictors_chr
Predictors (a character vector), Default: character(0)
- prefix_1L_chr
Prefix (a character vector of length one), Default: 'Cumulative'
- stepwise_1L_lgl
Stepwise (a logical vector of length one), Default: TRUE
- terms_1L_chr
Terms (a character vector of length one), Default: character(0)
- terms_ls
Terms (a list), Default: NULL
- test_1L_int
Test (an integer vector of length one), Default: integer(0)
- type_1L_chr
Type (a character vector of length one), Default: c("totals", "key")
- what_1L_chr
What (a character vector of length one), Default: character(0)