Description Usage Arguments Value Examples
View source: R/DaysModelPicker.R
Function to choose optimal daily forecast model
1 | DaysModelPicker(data, Outcome, DateVar, H.Horizon = 14)
|
data |
A regularised daily 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(fb_returns)
DaysModelPicker(fb_returns, Outcome=daily.returns, DateVar=trading_day, H.Horizon=15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.