Closed christophsax closed 6 years ago
OK, all these little issues should be fixed.
For the first, forecasting a single series: the C++ code requires that variable types are declared. Y should be a matrix, but for a single series the default in R is to convert Y to a vector. We now keep Y as a matrix using
Y[,-(1:m), drop = FALSE]
For the second, the ts stuff should now be OK (class(Y)[1]
was mts
which was not in tsobjs
. I changed this to any(class(Y)%in%tsobjs)
and added mts
to tsobjs
.)
For the third, the default is dfm(Y, intercept = TRUE)
, but the bit of code that adds intercept terms back in to predicted values got lost in the formatting somewhere. Anyhow, it's back now.
ps --- I'd not used ts_plot()
before... very slick. Much nicer that ts.plot()
!
Some minimal examples that I ran before. I get errors when:
mdeaths
, so different from the original values?Created on 2018-10-22 by the reprex package (v0.2.1)