Displaying 1 result from an estimated 1 matches for "histvalues".
Did you mean:
hatvalues
2009 Jul 21
1
Forecasting - Croston Method Error
...the Croston function from the forecasting package
1.24<http://robjhyndman.com/software/forecasting> with
the code below, but I get in return this message "*Error in
decompose(ts(x[1L:wind], start = start(x), frequency = f), seasonal) : time
series has no or less than 2 periods*".
histValues
<-ts(c(5,5,0,0,3,0,1,3,0,3,0,2,7,3,2,2,3,2,3,2,2,3,1,1,3,0,1,0,2,1,0,4,1,1,3,0,1),f=12,s=c(1998,1))
forecastValues <- croston(histValues, h=4, alpha=0.1)
Does anyone know the causes and how to fix this problem?
Thanks,
Pedro Souto
[[alternative HTML version deleted]]