I created this loop:
library(forecast)
a=1
b=60
while(b<=(NROW(tsarroz))){
janela=dput(tsarroz [a:b])
serie=ts(janela,freq=6)
HW=HoltWinters(serie)
prev=forecast(HW,6)
result=data.frame(prev$mean)
a=a+6
b=b+6
}
It should cr...
asked by
10.10.2018 / 02:58