Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Analyzing Daily/Weekly data using ts in R

Tags:

r

time-series

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 suited for analyzing daily or weekly data. Almost all the examples I see on the web or in Cowpertwait and Metcalfe's "Introductory Time Series with R" use monthly or annual data.

I would like to use ts to analyze weekly data, is it not advisable ?

like image 819
Rajiv Avatar asked Dec 08 '11 20:12

Rajiv


1 Answers

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.

like image 105
G. Grothendieck Avatar answered Sep 19 '22 15:09

G. Grothendieck