Dear forum-members,
first of all hello and it nice job with the forum, but the search did not work well for me. I am in big trouble have to do my thesis with stata, never worked before with it. I have to work with CRSP data, a financial data provider, the problem for me is that everything is in one column. I am used to it that I have a column per firm or share, CAN I CHANGE THAT IN STATA, to get from one column, to several for each firm?
Another problem is that I have to merge the CRSP data so all shares listed from 1925-2014, with the Fama French factors from prof. French's website. The problem is the factors are in a text file, where the date is written as 192509, and I am quite desperate can't get the date into a stata format. As I've read so far, I have to make an identifier for the CRSP and the same one for the FF factors, so I could merge them. But the date identifier for the CRSP data is a different one for different stocks but the same date, and that is kind of unlogical to me.
SO in short CRSP data all returns in one column, all dates in one column. In excel I would have sorted it column by column, but it is not possible to work with this data in excel, since I got 3.3 mil rows, excel can just handle a bit over 1mil.
Then I need to sort 10th decile portfolios, and afterwards regress all individual returns over the factors, and store the residuals for each time and stock, then I have to sort 10 decile portfolios, on these residual returns and form momentum portfolios based on these. Holding period 12 months excluding the last month. So I have to look which stock performed the best over this 12 month period and assign it to one of 10 portfolios based on its relative performance at time t (month t, since monthly data). Rebalancing happens every year, for the investment strategy.
The CRSP data in STATA seems quite unlogical to me.
Any help greatly appreciated,
Regards,
Thomas
first of all hello and it nice job with the forum, but the search did not work well for me. I am in big trouble have to do my thesis with stata, never worked before with it. I have to work with CRSP data, a financial data provider, the problem for me is that everything is in one column. I am used to it that I have a column per firm or share, CAN I CHANGE THAT IN STATA, to get from one column, to several for each firm?
Another problem is that I have to merge the CRSP data so all shares listed from 1925-2014, with the Fama French factors from prof. French's website. The problem is the factors are in a text file, where the date is written as 192509, and I am quite desperate can't get the date into a stata format. As I've read so far, I have to make an identifier for the CRSP and the same one for the FF factors, so I could merge them. But the date identifier for the CRSP data is a different one for different stocks but the same date, and that is kind of unlogical to me.
SO in short CRSP data all returns in one column, all dates in one column. In excel I would have sorted it column by column, but it is not possible to work with this data in excel, since I got 3.3 mil rows, excel can just handle a bit over 1mil.
Then I need to sort 10th decile portfolios, and afterwards regress all individual returns over the factors, and store the residuals for each time and stock, then I have to sort 10 decile portfolios, on these residual returns and form momentum portfolios based on these. Holding period 12 months excluding the last month. So I have to look which stock performed the best over this 12 month period and assign it to one of 10 portfolios based on its relative performance at time t (month t, since monthly data). Rebalancing happens every year, for the investment strategy.
The CRSP data in STATA seems quite unlogical to me.
Any help greatly appreciated,
Regards,
Thomas
Comment