What does the forecast package show error?

29 views Asked by At
ARIMA_Modelb <- Arima(bankura_ts, order = c(0,0,1), 
                      seasonal = c(2,0,2))
ETS_Modelb <- ets(bankura_ts, damped = TRUE, model = "AZN")

#ARIMA Model Forecast
autoplot(forecast(ARIMA_Modelb, h=72)) + theme_bw() + 
  ylab("Rainfall") + xlab("Datetime") + 
  scale_x_date(date_labels = '%b - %Y', 
               breaks = '5 year', minor_breaks = '6 month') +
  theme_bw() + ggtitle("Bankura Rainfall Forecast 2021-2026 
  ARIMA Model")
#ETS Model Forecast
autoplot(forecast(ETS_Modelb, h=72)) + theme_bw() + 
  ylab("Rainfall") + xlab("Datetime") + 
  scale_x_date(date_labels = '%b - %Y', breaks = '5 year', 
               minor_breaks = '6 month') +
  theme_bw() + ggtitle("Bankura Rainfall Forecast 2021-2026 
  ETS Model")

The output shows some error in the forecast function: Error in forecast(fit1, h = 12) : argument "M" is missing, with no default

I tried reinstalling the forecast package to no avail and the same error is shown when using other codes

0

There are 0 answers