Closed ghost closed 3 years ago
Hi @mrepetto94,
External Regressors are essential to ML. We do this in one of 2 ways:
recipe
or when extending into the future and adding lags, rolling features. We then use a workflow to add the model, recipe, and fit() to the data. fit()
. E.g. model_spec %>% fit(consumption ~ gnp + L(consumption), data = USDistLag)
.I teach how to do all of this in my High-Performance Time Series Forecasting Course. The advantage to taking the course is that you will learn specifically how to analyze time series in 3 parts:
This is a paid course, but it may be worth it if your organization depends on your ability to forecast. They may even pay for it. But that's the ultimate resource if you are interested in using modeltime
to further your forecasting.
Thank you Matt for the fast response! I will definitely do your course in the summer period :-)
Thanks, Matt for this amazing package! I'm a big fan of tidymodels and when I saw your package I couldn't wait to try it.
I took a look at the doc, and I could not find an example with external regressors, is it possible to do that?
Something of the type you'll do in dynlm:
Where L is the lag operator that can be say 1...n