I have never used Stata before and have been trying to test the Fama and French three-factor model in order to get comfortable with the software. Running Fama-MacBeth with the 25 FF portfolios as test assets is a standard procedure in the asset pricing literature, the FF model is of no particular interest to me.
I downloaded the fm .ado file from Petersen's website and ran a test using the test data set he put up. I had no issues. I have also tried using xtfmb.
The issue I am having with the FF portfolios is that when I combine the factor data with the portfolio data, this is what I get (just a subset of the portfolios are presented below):
I understand that I need to define a panel variable with tsset and the portfolio sorts represent the panel variable. However, I have not been able to reorganise the data in a way that would allow me to execute fm.ado/xtfmb. The way it stands, I am looking at multiple dependent variables that are regressed against the same set of independent variables. I tried stacking the portfolio data vertically and copying the factor variables and date 25 times but I obtained 0 estimates for all slope variables with omitted standard errors (I understand why this happened).My question is: How do I modify the data in a way that would allow me to execute fm.ado?
Thank you,
Denis
.
I downloaded the fm .ado file from Petersen's website and ran a test using the test data set he put up. I had no issues. I have also tried using xtfmb.
The issue I am having with the FF portfolios is that when I combine the factor data with the portfolio data, this is what I get (just a subset of the portfolios are presented below):
Date | MKtRf | HML | SMB |
|
|
|
|||||||
|
|
|
|
|
|
|
Thank you,
Denis
.
Comment