I am trying to use forecast function on ardl model like this.
library(ARDL)
data(denmark)
models <- auto_ardl(LRM ~ LRY + IBO + IDE, data = denmark, max_order = 5)
ardl_3132 <- models$best_model
fabletools::forecast(object = ardl_3132, new_data = denmark[1:20, ])
forecast::forecast(object = ardl_3132, new_data = denmark[1:20, ])
However, it's throwing an error Error in L(LRM, 1) : could not find function "L"
How can I make forecast work here?
I am seeting this error too when trying to use predict() on an ardl model.
L function is in tsDyn, I think, but loading that does not eliminate the error.