Rstudio Extend sma() Rolling average

Viewed 9

Is anyone aware how you can extend the amount of data returned from studio using sma()? It is only returning 10 estimates, and I would like it to return 29.

Vx1=sma(Data$Visits)                                                       
smooth::forecast(x1, level = 0.80, h=12)

returns 10 estimates ignoring the h=12 request

forecast(x1)
Time Series:
Start = 8 
End = 17 
Frequency = 1 

   Point forecast Lower bound (2.5%) Upper bound (97.5%)
 8       42556.14          -36555.95            121668.2
 9       35615.31          -44299.98            115530.6
10       36362.35          -44590.00            117314.7
11       36373.97          -45913.23            118661.2
12       36105.82          -47892.91            120104.6
13       40532.23          -45650.80            126715.3
14       39065.12          -49890.14            128020.4
15       38087.28          -54363.73            130538.3
16       37448.87          -56639.78            131537.5
17       37710.81          -58152.53            133574.1
0 Answers
Related