Description Value Super class Methods
R6 class ModelCompareMultivariate
R6 class ModelCompareMultivariate
A dataframe containing the following columns 'Model': Name of the model 'Trend': The trend argument used in the VAR functions 'Season' The season argument used in the VAR functions 'SlidingASE': Whether Sliding ASE will be used for this model 'Init_K': The K value recommended by the VARselect function 'Final_K': The adjusted K value to take into account the smaller batch size (only when using sliding_ase)
tswgewrapped::ModelCompareBase
-> ModelCompareMultivariateVAR
new()
Initialize an object to compare several Univatiate Time Series Models
ModelCompareMultivariateVAR$new( data = NA, var_interest = NA, mdl_list, n.ahead = NA, batch_size = NA, step_n.ahead = TRUE, verbose = 0 )
data
The dataframe containing the time series realizations (data should not contain time index)
var_interest
The output variable of interest (dependent variable)
mdl_list
A named list of all models (see format below)
n.ahead
The number of observations used to calculate ASE or forecast ahead
batch_size
If any of the models used sliding ase method, then this number indicates the batch size to use
step_n.ahead
If using sliding window, should batches be incremented by n.ahead (Default = TRUE)
verbose
How much to print during the model building and other processes (Default = 0)
A new 'ModelCompareMultivariateVAR' object.
get_var_interest()
Returns the dependent variable name
ModelCompareMultivariateVAR$get_var_interest()
The dependent variable name
get_data_var_interest()
Returns the dependent variable data only
ModelCompareMultivariateVAR$get_data_var_interest()
The dependent variable data only
get_xIC()
Returns the AIC and the BIC for the model using the entire dataset
ModelCompareMultivariateVAR$get_xIC(sort_by = "AIC")
sort_by
'AIC' or 'BIC'. Selects which column to sort the results by (Default: 'AIC')
summarize_build()
Returns the VAR model Build Summary
ModelCompareMultivariateVAR$summarize_build()
clone()
The objects of this class are cloneable with this method.
ModelCompareMultivariateVAR$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.