Analyzing Daily/Weekly data using ts in R

前端 未结 5 716
暗喜
暗喜 2020-11-30 01:22

I have just started playing with the ts class to analyze some time series data I have.

I am getting a sense that the ts class is not well s

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 02:10

    The main problem is that most people who want to analyse daily or weekly data want to do something like use a frequency of 365 days per year or 52 weeks per year but the number of days or weeks in a year is not 365 or 52 or even constant. If you drop one day in leap years in the case of daily data, say, or use 7 days for each week of the year except one which has 8 or 9 days in the case of weekly data, say, then you can fudge it. An endless variety of schemes is possible.

    Read through this thread for an example.

提交回复
热议问题