forecast_m: Monthly forecast evaluation of vintages

View source: R/forecast_m.R

forecast_mR Documentation

Monthly forecast evaluation of vintages

Description

[Experimental]

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.

Usage

forecast_m(r_list, data, fd = T)

Arguments

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).

Value

Returns a list with the the predicted data and the used model results.

Methods

Google Data should be log-transformed currently it uses a RIDGE-Regression but other models such as OLS, LASSO or PCA are available.


johannes97s/ifwtrends documentation built on Oct. 9, 2022, 7:01 p.m.