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)