Description Usage Arguments Value Examples
View source: R/MonthModelPicker.R
Function to choose optimal forecast model for monthly data
1 | MonthModelPicker(data, Outcome, DateVar, H.Horizon = 14)
|
data |
A monthly tsibble. |
Outcome |
A valid variable name for the Outcome to be modelled in in 'data'. |
DateVar |
A valid variable name for the time index in 'data'. |
H.Horizon |
An integer for the forecast horizon/test subset of 'data'. |
A list containing:
Accuracy.Table: accuracy for the forecast horizon against the test sample.
test: the test set
train: the training set
Model.Fits: the model fits
Model.Forecasts: the forecasts
Min.Model: the minimum model by MAE
Min.Report: the minimum model report
Min.Res.Plot: the gg_tsdisplay for the minimum model
Min.Forecast.Plot: a plot of the minimum forecast by MAE
1 2 | data(NWSM)
MonthModelPicker(NWSM, MaxAvg, Month, H.Horizon=12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.