3

I have a question regarding declaring my dataset as a time series. I have weekly historical data of demand of a certain product. Every week is labeled as 201401, 201402, up to the current month 201937.

The problem arises once I declare the set as ts <- ts(data, start=2014, frequency=52). Because every year consists of 365.25 days, in my set I have a week 201553. So from week 201601, every week is basically a week later, which causes problem when finding seasonality patterns.

Do I have to delete week 201553 or what is the appropriate continuation?

zx8754
  • 52,746
  • 12
  • 114
  • 209
T Goose
  • 31
  • 6

1 Answers1

0

If you set frequency=365.25/7, things should work out fine.

References

B--rian
  • 5,578
  • 10
  • 38
  • 89