Grouping Data By Day (eg Mondays, Tuesdays etc)
Posted: Wed Mar 02, 2011 8:30 pm
To who it may concern,
Hi Good Day,
I am using Eviews7 and I am trying to group data acording to days. I am using stock market data (daily prices). I know EViews7 has the "Wide+/-" option to click and it arranges time series data into columns (for a 7 day week its 7 coloumns with each column neatly listing each day eg. column 1 could mean mondays, column 2 could mean tues etc).
However I have a slight problem. The time series data that I have downloaded only contains data for trading days and nothing for non-trading days. Thus, for example when i view this in the "wide" format the first, say 4 ROWS, for column 1 lists wednesdays, but then the 5th-9th rows for coloumn 1 when i inspect it, actually begins to list data for thursdays etc.
The days that should be dedicated to a coloumn gets messed up since the data I imported is only a series of AVAILABLE data and there is NO RECORD ( not even a "N/A" or a dash) for non-trading days. There is simply only a list of traded days' closing prices.
So my question is, how can I organize my data in such a way so that in the "wide" view I can have ONLY mondays in column 1, column 2 only tuesdays....until column 5 only friday data. The point is to have columns dedicated to days. For eg column 1 need not be Mondays in particular but it NEEDS to be consistent in whatever day it begins listing. Its ok if I end up with a column 6 (saturday) and column 7 (sunday) with no data or "N/A"s or "-"(dashes) because these are non-trading days anyways. My main concern is to get my data ordered chonologically by days.
I hope i have explain the nature of my problem adequately. If further explanation is needed I will be glad to give it. I am glad for any help as the alternative is to go through literally thousands of lines of excel data manually. If I can do it through Eviews this would speed up my cause a hundred fold!
Thanking you for your help in advance.
Hi Good Day,
I am using Eviews7 and I am trying to group data acording to days. I am using stock market data (daily prices). I know EViews7 has the "Wide+/-" option to click and it arranges time series data into columns (for a 7 day week its 7 coloumns with each column neatly listing each day eg. column 1 could mean mondays, column 2 could mean tues etc).
However I have a slight problem. The time series data that I have downloaded only contains data for trading days and nothing for non-trading days. Thus, for example when i view this in the "wide" format the first, say 4 ROWS, for column 1 lists wednesdays, but then the 5th-9th rows for coloumn 1 when i inspect it, actually begins to list data for thursdays etc.
The days that should be dedicated to a coloumn gets messed up since the data I imported is only a series of AVAILABLE data and there is NO RECORD ( not even a "N/A" or a dash) for non-trading days. There is simply only a list of traded days' closing prices.
So my question is, how can I organize my data in such a way so that in the "wide" view I can have ONLY mondays in column 1, column 2 only tuesdays....until column 5 only friday data. The point is to have columns dedicated to days. For eg column 1 need not be Mondays in particular but it NEEDS to be consistent in whatever day it begins listing. Its ok if I end up with a column 6 (saturday) and column 7 (sunday) with no data or "N/A"s or "-"(dashes) because these are non-trading days anyways. My main concern is to get my data ordered chonologically by days.
I hope i have explain the nature of my problem adequately. If further explanation is needed I will be glad to give it. I am glad for any help as the alternative is to go through literally thousands of lines of excel data manually. If I can do it through Eviews this would speed up my cause a hundred fold!
Thanking you for your help in advance.