Description Usage Arguments Value See Also Examples
Train multitude of models on a univariate time series
1 2 3  | magic.karma(y, model_list = 1:11, stacking = F, test_pct_train = "auto",
  test_type_train = "auto", test_pct_valid = "auto",
  test_type_valid = "auto", xreg = NULL, plot = F, stdout = F)
 | 
y | 
 A univariate time-series vector; type <numeric> or <ts>.  | 
model_list | 
 List of indexes of training models/algorithms in that order: ms-arima, auto-arima, nms-arima, ld-arima, rw-arima, sbj-arima, smbj-arima, nnetar, ets, bats, tbats; <list>  | 
stacking | 
 Whether to use ensemble learning algorithms or not; <T/F>  | 
test_pct_train | 
 Percentage of train-test split in model training (e.g. 70-30), after the model is trained.  | 
test_type_train | 
 Train-test split type for training, i.e. percentage or fixed window; "percentage": test_pct = 12 will be read as the 12 percent of the length of the series; "window": test_pct = 12 will be read as the 12 last time points (e.g. months) of the series.  | 
test_pct_valid | 
 Percentage of train-test split in model validation (e.g. 70-30), after the model is trained.  | 
test_type_valid | 
 Train-test split type for validation, i.e. percentage or fixed window; "percentage": test_pct = 12 will be read as the 12 percent of the length of the series; "window": test_pct = 12 will be read as the 12 last time points (e.g. months) of the series.  | 
xreg | 
 Optional vector or matrix of exogenous regressors; see documentation for Arima(), package 'forecast'.  | 
plot | 
 Option to depict plots during local search; if TRUE (default), AC and PAC plots are active. <logical>  | 
stdout | 
 Option to output optimisation diagnostics during local search; <logical>  | 
Object of class "karma.fit"; (extends class "Arima" from package 'forecast').
1 2 3 4  |  kmodels = magic.karma(JohnsonJohnson)
 kmodels[[1]]$fit_obj$aicc
 kmodels[[1]]$cv_obj$mape_in
 kmodels[[1]]$cv_obj$mape_out  
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.