我想在 R 上使用 holt() 函数,并将其应用于时间序列 ts。但我得到这个错误,不明白为什么:
霍尔特(时间序列)
etsTargetFunctionInit 中的错误(par = par,y = y,nstate = nstate,errortype = errortype,:与请求的类型不兼容:[type=character; target=double]。此外:警告消息:在 is.constant(y) : 强制引入的 NA
当我尝试其他预测功能(如 thetaf 和 ses)时,我得到了同样的错误。