forecast_m | R Documentation |
forecast_m()
uses monthly vintages generated by roll()
to predict the value of another time series for the next month.
Currently, this function couldn't be tested yet.
forecast_m(r_list, data, fd = T)
r_list |
A Google Trends time series in form of a tibble (or tsibble) which is used to predict the next month in data. |
data |
A tibble with some data you want to predict for the next month that is somewhat correlated with the data in r_list. |
fd |
A logical value to indicate if you want to use the first differences in r_list (true) or normal values (false). |
Returns a list with the the predicted data and the used model results.
Google Data should be log-transformed currently it uses a RIDGE-Regression but other models such as OLS, LASSO or PCA are available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.