I am having a weekly data and want to forecast values based on available actuals in R using timeseries model.
I tried to convert the data to a timeseries data using (ts) but couldnt.
Weekly | Income |
---|---|
1/8/2018 | 1220 |
1/15/2018 | 2200 |
1/22/2018 | 8800 |
1/29/2018 | 7743 |
2/5/2018 | 4432 |
2/12/2018 | 56789 |
2/19/2018 | 95643 |
2/26/2018 | 2200 |
3/5/2018 | 23400 |
3/12/2018 | 3340 |
3/19/2018 | 2098 |
3/26/2018 | 12098 |
4/2/2018 | 12060 |
4/9/2018 | 10980 |
4/16/2018 | 202987 |
4/23/2018 | 40003 |
4/30/2018 | 30009 |
5/7/2018 | 3480 |
5/14/2018 | 40090 |
5/21/2018 | 6800 |
5/28/2018 | 40088 |
t_data<-ts(mydata1_subset2$income,frequency = 52,start = c(2018,1))
``
any idea how to convert the data set to a timeseries data based on weekly and any model to predict the value for future.