我正在尝试对我的数据运行动态线性回归:
require(zoo)
dlr <- dynrq(explore ~ L(explore,1) + L(explore,12), tau = 99/100)
dlr <- dynrq(explore ~ L(explore,1) + L(explore,20), tau = 99/100)
dlr <- dynrq(explore ~ L(explore,1) + L(explore,20), tau = 99/100, start = c(2,1), end = c(87,20))
我使用三种不同的公式来尝试运行回归:
Error in hasTsp(x) : invalid time series parameters specified
我一直收到错误:
{
"type": "collection",
"id": "home_featured_collections_7"
},
探索目前是一个列表。 The example使用double类型的数据。当我使用this solution将数据转换为double时,我得到了相同的错误。我需要使用时间序列变量,如xts吗?我的公式有问题吗?