0

I am currently working on a Time Series Forecasting exercise using R. As a part of the exercise, I am trying to create a Simple Exponential Smoothing plot. The problem is that I keep receiving the following error using the code below:

Error in ets(x, "ANN", alpha = alpha, opt.crit = "mse", lambda = lambda,  : 
No model able to be fitted). 

If it helps, here is the link to the exercise: https://www.kaggle.com/code/brwalk/an-introduction-to-time-series-forecasting-in-r/notebook

autoplot(ses(sales), PI = FALSE)
shafee
  • 15,566
  • 3
  • 19
  • 47
  • 1
    It'll be difficult to answer this question because it's not easily [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). Accessing the data requires a Kaggle account and the tutorial is four years old. As far as I can tell, this error message means your AIC and/or BIC [is infinite](https://github.com/robjhyndman/forecast/blob/master/R/ets.R). Are you able to make a model using datasets built into the package like [gas or gold](https://cran.r-project.org/web/packages/forecast/forecast.pdf), to make sure your packages are installed correctly? – jrcalabrese Dec 28 '22 at 17:34

0 Answers0