-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time Series - Multiple regression (VAR, Vector Autoregression) #77
Comments
Hey @coforfe , The core idea for The VAR data format is, in its most basic form, just a regression. So you can do regression in
The only thing I can think of possibly adding helpers around formatting the data as a VAR problem. Also maybe adding feature importance tools down the road. I'm interested to hear more of what your needs are so I can understand if I am on the right track. References |
Hi Matt, Thanks. Thanks again, |
Yes, Regarding learning more, here's where to go for topics. Time Series Forecasting CourseThe High-Performance Time Series Course teaches the main elements of the ecosystem in incredible depth. Learning Labs PRO - Special Time Series TopicsWe have a special time series section of labs that address special topics in Modeltime like panel forecasting, recursive() for a forecasting with lags, etc. We have more coming including the new additions such as |
OK. Matt. |
I think VAR can be implemented through recursive() function using lags as the transformation function, basically what we are doing is taking the previous lags of the xregs to fulfill the NA values and forecast. Maybe we could explain the relation between recursive and VAR models to be more concise. Regards, |
Yes, this is probably a Learning Lab where students can learn how to do this. We'll have learning labs on topics like:
|
A fundamental method that is used a lot in Finance and Economics and generalizes VAR (vector autoregressive) is VECM (vector error-correction models). Do you plan to incorporate it too? I believe it would be an important addition to As reference, you may check Stata's documentation (hyperlinks above) and Python's statsmodels Thank you |
@GitHunter0 Thanks for this. VAR was added to the roadmap some time ago so we have on our radar. May take a bit but will try to get in soon. For most up to date roadmap check out issue #5. |
Thank you @mdancho84 , I know you are pretty busy right now, doing great work as always. PS: A good thing about |
@GitHunter0 Is there a preferred implementation in R? |
@mdancho84 maybe this link will give some light: |
@mdancho84 , unfortunately I believe there are very few options of packages that handle VEC models in R, tsDyn must be the main/best one (although its focus is on more advanced (nonlinear) VAR/VEC versions). I couldn't find an R package that comes close to Stata's professional quality, clear API and well documented implementation (however it is a paid software). Therefore, I have very little experience working with VEC and VAR models in R, which is a shame since it opens up much more possibilities than Stata. |
For VAR and VECM I would go for the vars package in R (https://cran.r-project.org/web/packages/vars/vignettes/vars.pdf). I've only used VAR/VECM to analyze impulse response functions. For forecasting I would always go for other methods, something that is already available in modeltime. What I'm excited for is GPVAR (https://ts.gluon.ai/api/gluonts/gluonts.model.gpvar.html) which, if I understand it fully, allows you to model thousands of time series that are functions of each other. Something I think VAR would struggle with. |
The GPVAR might not be that bad. I'll have to take a look. |
Hi, @mdancho84 It would be good to add DeepVAR(https://ts.gluon.ai/api/gluonts/gluonts.model.deepvar.html) |
Hi Matt,
First of all, thanks for all you are doing around modeltime. It's clearly a big step forward for TimeSeries modeling.
Perhaps it is already covered but I am not able to see if in modeltime is considered the case where you can put several time series together. Define one of them as a target and check how influencial are the rest (as predictors). What I have seen so far is how to model a univariant time series, by extracting different features and model it.
Thanks again,
Carlos Ortega.
The text was updated successfully, but these errors were encountered: