我正在尝试在这样的ardl 模型上使用预测功能。
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, ])
但是,它抛出了一个错误Error in L(LRM, 1) : could not find function "L"
我怎样才能在这里进行预测?