I am looking to forecast my time series. I have the following period daily data 2021-Jan-1 to 2022-Jul-1. So I have a column of observations for each day. what I tried so far:
d1=zoo(data, seq(from = as.Date("2021-01-01"), to = as.Date("2022-07-01"), by = 1))
tsdata <- ts(d1, frequency = 365)
ddata <- decompose(tsdata, "multiplicative")
I get following error here:
Error in decompose(tsdata, "multiplicative") : time series has no or less than 2 periods
From what i have read it seems like because I do not have two full years? is that correct? I have tried doing it weekly as well:
series <- ts(data, frequency = 52, start = c(2021, 1))
- getting the same issue.
How do I go about it without having to extend my dataset to two years since I do not have that, and still being able to decompose it? Plus when I am actually trying to forecast it, it isn't giving me good enough forecast: