forecast package time series in R


Why do we get NAs in residual and fitted values of forecast() function. Below is an example

fancy <- scan("")
souvenir_series = ts(data =log(fancy),start = 1987, frequency = 12)
souvenir_series_forecasts = HoltWinters(souvenir_series)
souvenir_series_forecasts2 = forecast(souvenir_series_forecasts,h = 48)


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

By executing the codes which I have given, you will be able to generate the output shown.

Let me know if I am missing something.

I won't, because your code doesn't load any package. Please have a look at the link I provided to see how to make a reproducible example.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.