Natsiopoulos / ARDL

ARDL, ECM and Bounds-Test for Cointegration
GNU General Public License v3.0
17 stars 9 forks source link

Using AutoARDL() with exogenous variables #3

Closed omzeybek closed 2 years ago

omzeybek commented 3 years ago

Hi I am using ARDL package with a time series data with 150 variables, which I assume 90 of them have dynamic character and others are exogenous dummy variables. But I need to add exo variables to my equation. Following documentation on CRAN, I wrote a code given below;

models <- auto_ardl(x~ y | exo_var , data=dfzooreg, max_order = 5)

but estimation cannot include the exo_var to the model. Am I doing the wrong way to add exo variables?

Natsiopoulos commented 3 years ago

Hello. No, you do it the right way. Just to clarify, in your example models <- auto_ardl(x~ y | exo_var , data=dfzooreg, max_order = 5) you realize that you are using just one independent variable (y) and one exogenus (exo_var), right? If so, yes this is indeed the right paradigm of how to use it.

The first things you can try are:

It would be much more helpful if you could explain what exactly is the problem? Is there an error message, if yes what is it? Does the model run but it just ignores the exogenous variables?

If you still face this problem, can you attach a small sample of your data (or sent it via email) so I can try to reproduce the problem?

Thank you.