Natsiopoulos / ARDL

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

Is it possible to specify a ARDL without intercept using this package? #13

Open mabuimo opened 2 years ago

mabuimo commented 2 years ago

ardl_fit <- ardl(target~ -1 + cpi+ oil + ind_prod, data = france_tbl, order = c(1,1,2,1)) I have tried using -1 in the formula but it doesn't work.

Natsiopoulos commented 2 years ago

Yes, it is possible to specify an ARDL model without an intercept. A bug doesn't allow -1 to be right after ~. Thank you for reminding me of this issue, I will fix it. For now, just place -1 in another place, between the other variables, or at the end (e.g. ardl(target~ cpi+ oil + ind_prod -1, data = france_tbl, order = c(1,1,2,1)))