【发布时间】:2018-12-13 15:06:17
【问题描述】:
我正在尝试在我的时间序列分析中包含一个外生回归变量
elm_nn<-elm(ts(df),
m=1,
hd=NULL,
type="step",
reps = 20,
comb = "median",
difforder = c(0:12),
outplot =TRUE,
sel.lag=FALSE,
direct = FALSE,
allow.det.season = TRUE,
det.type = "auto",
xreg =reg)
使用
df<-c(0,0,173,0,0,80,0)
reg<-c(182,135,30,203,150,83,163)
package documentation 中的信息暗示 xreg 是一列,可能来自表。我有一个向量,我在使用 ARIMA 时用作 xreg,它的执行没有问题。然而,在 elm 中使用相同的向量会产生错误Error in xreg[1, ] : incorrect number of dimensions。我找不到有关专门处理时间序列的极端学习机器的外生回归量的信息。任何帮助将不胜感激。
【问题讨论】:
标签: r