Dear all,
The Fama-MacBeth (FMB) procedure has been discussed in several threads. However, I can't find a thread how to apply this procedure to multiple stock portfolios instead of single stocks. I try to formulate my question to focus on the execution in Stata. Hence, someone not familiar with FMB might also have an idea how to solve the problem.
My data looks as following:
I have to run a regression for each of the single 49 industry portfolios for each single month. So that would be 49x700 regressions. Thereby, I regress eret against _b_IP, _b_MktRF, _b_HML and _b_SMB. The values for the variables _b_IP, _b_MktRF, _b_HML and _b_SMB for each industry portfolio (variable "Ind") are constant over time (variable "date_adj"). After that I calculate the mean for the new _b values, so that I should have 4 different mean betas overall in the end. Actually, I think the following command would be appropriate:
This command should do all the steps from regressing to aggregating. However, the problem is that I have multiple values for eret per Ind. How can I consider this in my approach?
Any help would be much appreciated.
Best regards,
Alex
The Fama-MacBeth (FMB) procedure has been discussed in several threads. However, I can't find a thread how to apply this procedure to multiple stock portfolios instead of single stocks. I try to formulate my question to focus on the execution in Stata. Hence, someone not familiar with FMB might also have an idea how to solve the problem.
My data looks as following:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str6 Ind float(_b_IP _b_MktRF _b_HML _b_SMB date_adj eret) "_Aero" .04750393 1.1349244 .3038464 .1914637 -115 -3.14 "_Aero" .04750393 1.1349244 .3038464 .1914637 -114 15.82 "_Aero" .04750393 1.1349244 .3038464 .1914637 -113 -3.21 "_Aero" .04750393 1.1349244 .3038464 .1914637 -112 -1.93 "_Aero" .04750393 1.1349244 .3038464 .1914637 -111 -.14 "_Aero" .04750393 1.1349244 .3038464 .1914637 -110 8.43 "_Aero" .04750393 1.1349244 .3038464 .1914637 -109 12.8 "_Aero" .04750393 1.1349244 .3038464 .1914637 -108 1.79 "_Aero" .04750393 1.1349244 .3038464 .1914637 -107 2.97 "_Aero" .04750393 1.1349244 .3038464 .1914637 -106 -8.63 "_Aero" .04750393 1.1349244 .3038464 .1914637 -105 5.23 "_Aero" .04750393 1.1349244 .3038464 .1914637 -104 -3.41 "_Aero" .04750393 1.1349244 .3038464 .1914637 -103 -9.01 "_Aero" .04750393 1.1349244 .3038464 .1914637 -102 10.55 "_Aero" .04750393 1.1349244 .3038464 .1914637 -101 4.83 "_Aero" .04750393 1.1349244 .3038464 .1914637 -100 4.52 "_Aero" .04750393 1.1349244 .3038464 .1914637 -99 -1.87 "_Aero" .04750393 1.1349244 .3038464 .1914637 -98 -2.93 "_Aero" .04750393 1.1349244 .3038464 .1914637 -97 1.86 "_Aero" .04750393 1.1349244 .3038464 .1914637 -96 4.32 "_Aero" .04750393 1.1349244 .3038464 .1914637 -95 -4.6 "_Aero" .04750393 1.1349244 .3038464 .1914637 -94 .95 "_Aero" .04750393 1.1349244 .3038464 .1914637 -93 -6.64 "_Aero" .04750393 1.1349244 .3038464 .1914637 -92 7.22 "_Aero" .04750393 1.1349244 .3038464 .1914637 -91 7.13 "_Aero" .04750393 1.1349244 .3038464 .1914637 -90 .29 "_Aero" .04750393 1.1349244 .3038464 .1914637 -89 1.05 "_Aero" .04750393 1.1349244 .3038464 .1914637 -88 -1.95 "_Aero" .04750393 1.1349244 .3038464 .1914637 -87 1.61 "_Aero" .04750393 1.1349244 .3038464 .1914637 -86 5.03 end format %tm date_adj
Code:
bys date_adj Ind: asreg eret _b_IP _b_MktRF _b_HML _b_SMB, fmb
Any help would be much appreciated.
Best regards,
Alex
Comment