I am using the packages "fpp" and "fpp2".
The homework question (question 11(f)) is located at
https://otexts.org/fpp2/expsmooth-exercises.html
I've tried to run the following code for tsCV on the ETS model (the same results occur for other models as stated in 11(d)):
convert visitors to time series
tvis <- ts(visitors)
run tsCV on tvis
e2 <- tsCV(tvis, forecast(ets(tvis),h=24), h=24)
However, when I run e2, all I get are NA values.
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
[1,] NA NA NA NA NA NA NA NA NA NA NA NA NA
[2,] NA NA NA NA NA NA NA NA NA NA NA NA NA
[3,] NA NA NA NA NA NA NA NA NA NA NA NA NA
Why is this so?
It works if I used another forecast function instead (e.g. rwf): e2 <- tsCV(tvis, rwf, h=24)
Thanks in advance.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)