Series Creation by Specified Day(s)/Month(s)/Year(s) etc
Posted: Fri Mar 25, 2011 6:27 am
Hi Good Day everyone,
I have a question concerning data grouping.
If I have daily stacked data in a workfile ( 5 years of daily stock prices across 30 different companies), is there a way to create a series that will give a listing of daily stock prices for the months of March-December (across the 5 years for all companies)? I am also trying to create a series with the daily data across all companies for Monday-Thursday for a similar reason. I have done some searching on the forum and looked though the user guide but I came across frequency conversion, which isn't exactly what I want.
If it helps, my overall aim is to do a simple hypothesis test, to test the mean of a stock's price in a particular month(s) (e.g mean of Jan-Feb price) against the mean of a stock's price in the rest of the months of the year (eg mean of March-Dec price). Needless to say I will need a distribution of prices for the specific months involved so that's why I'm trying to create a series that will list the prices of certain month(s) (and also for weekdays, for my day of the week test) then I can just use that time series to carry out my test.
My alternative is to copy and paste so I was just wondering if there is a function to generate a series based on specified months or days. I know there is a function to generate means by day/month/year etc (thanks again for that Gareth, if you happen to be reading this!)
Thanking you in advance for your valuable help.
I have a question concerning data grouping.
If I have daily stacked data in a workfile ( 5 years of daily stock prices across 30 different companies), is there a way to create a series that will give a listing of daily stock prices for the months of March-December (across the 5 years for all companies)? I am also trying to create a series with the daily data across all companies for Monday-Thursday for a similar reason. I have done some searching on the forum and looked though the user guide but I came across frequency conversion, which isn't exactly what I want.
If it helps, my overall aim is to do a simple hypothesis test, to test the mean of a stock's price in a particular month(s) (e.g mean of Jan-Feb price) against the mean of a stock's price in the rest of the months of the year (eg mean of March-Dec price). Needless to say I will need a distribution of prices for the specific months involved so that's why I'm trying to create a series that will list the prices of certain month(s) (and also for weekdays, for my day of the week test) then I can just use that time series to carry out my test.
My alternative is to copy and paste so I was just wondering if there is a function to generate a series based on specified months or days. I know there is a function to generate means by day/month/year etc (thanks again for that Gareth, if you happen to be reading this!)
Thanking you in advance for your valuable help.