0

我想在 R 上使用 holt() 函数,并将其应用于时间序列 ts。但我得到这个错误,不明白为什么:

霍尔特(时间序列)

etsTargetFunctionInit 中的错误(par = par,y = y,nstate = nstate,errortype = errortype,:与请求的类型不兼容:[type=character; target=double]。此外:警告消息:在 is.constant(y) : 强制引入的 NA

当我尝试其他预测功能(如 thetaf 和 ses)时,我得到了同样的错误。

4

1 回答 1

1

错误消息表明它需要一个数字向量,但您提供的是一个字符向量。

检查你的类timeseries

于 2018-03-22T01:11:27.827 回答