Hello. I was trying to run a holt() function in my R code and the following error occured:
Error in ets(x, "AAN", alpha = alpha, beta = beta, phi = phi, damped = damped, :
No model able to be fitted.
I've tried multiple efforts to make this code run, but it never did. This is the code that I am trying:
library(forecast)
input= read.table("6-2.txt", header = TRUE)
attach(input)
holt_model= holt(CalSales, h=4)
summary(holt_model[["model"]])
Input looks like this:
CalSales
1 197
2 211
3 203
4 247
5 239
6 269
7 308
8 262
9 258
10 256
11 261
12 288
13 296
14 276
15 305
16 308
17 356
18 393
19 363
20 386
21 443
22 308
23 358
24 384
I would really appreciate some help.